1 // compile-flags: -Ztreat-err-as-bug=1
3 // rustc-env:RUST_BACKTRACE=1
4 // normalize-stderr-test "\nerror: .*unexpectedly panicked.*\n\n" -> ""
5 // normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
6 // normalize-stderr-test "note: compiler flags.*\n\n" -> ""
7 // normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
8 // normalize-stderr-test "thread.*panicked.*\n" -> ""
9 // normalize-stderr-test "stack backtrace:\n" -> ""
10 // normalize-stderr-test "\s\d{1,}: .*\n" -> ""
11 // normalize-stderr-test "\s at .*\n" -> ""
12 // normalize-stderr-test ".*note: Some details.*\n" -> ""
14 #![allow(unconditional_panic)]
16 const X: i32 = 1 / 0; //~ERROR constant
19 let x: &'static i32 = &X;