summaryrefslogtreecommitdiffstats
path: root/src/test/ui/treat-err-as-bug/err.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/treat-err-as-bug/err.rs')
-rw-r--r--src/test/ui/treat-err-as-bug/err.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/treat-err-as-bug/err.rs b/src/test/ui/treat-err-as-bug/err.rs
new file mode 100644
index 000000000..de3e9ed6c
--- /dev/null
+++ b/src/test/ui/treat-err-as-bug/err.rs
@@ -0,0 +1,12 @@
+// compile-flags: -Ztreat-err-as-bug
+// failure-status: 101
+// error-pattern: aborting due to `-Z treat-err-as-bug=1`
+// error-pattern: [eval_to_allocation_raw] const-evaluating + checking `C`
+// normalize-stderr-test "note: .*\n\n" -> ""
+// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
+// rustc-env:RUST_BACKTRACE=0
+
+#![crate_type = "rlib"]
+
+pub static C: u32 = 0 - 1;
+//~^ ERROR could not evaluate static initializer