summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/location-detail-panic-no-location-info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panics/location-detail-panic-no-location-info.rs')
-rw-r--r--tests/ui/panics/location-detail-panic-no-location-info.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/panics/location-detail-panic-no-location-info.rs b/tests/ui/panics/location-detail-panic-no-location-info.rs
new file mode 100644
index 000000000..7b609145b
--- /dev/null
+++ b/tests/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");
+}