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