summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/location-detail-panic-no-location-info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panics/location-detail-panic-no-location-info.rs')
-rw-r--r--src/test/ui/panics/location-detail-panic-no-location-info.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/panics/location-detail-panic-no-location-info.rs b/src/test/ui/panics/location-detail-panic-no-location-info.rs
new file mode 100644
index 000000000..7b609145b
--- /dev/null
+++ b/src/test/ui/panics/location-detail-panic-no-location-info.rs
@@ -0,0 +1,8 @@
+// run-fail
+// check-run-results
+// compile-flags: -Zlocation-detail=none
+// exec-env:RUST_BACKTRACE=0
+
+fn main() {
+ panic!("no location info");
+}