summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/location-detail-unwrap-no-file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panics/location-detail-unwrap-no-file.rs')
-rw-r--r--tests/ui/panics/location-detail-unwrap-no-file.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/panics/location-detail-unwrap-no-file.rs b/tests/ui/panics/location-detail-unwrap-no-file.rs
new file mode 100644
index 000000000..5955d9a25
--- /dev/null
+++ b/tests/ui/panics/location-detail-unwrap-no-file.rs
@@ -0,0 +1,9 @@
+// run-fail
+// check-run-results
+// compile-flags: -Copt-level=0 -Zlocation-detail=line,column
+// exec-env:RUST_BACKTRACE=0
+
+fn main() {
+ let opt: Option<u32> = None;
+ opt.unwrap();
+}