about summary refs log tree commit diff
path: root/tests/ui/treat-err-as-bug/err.rs
blob: 74992497dab2d89d4ea4b5aa6f2c8ecf87277da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: -Ztreat-err-as-bug
// failure-status: 101
// error-pattern: aborting due to `-Z treat-err-as-bug=1`
// error-pattern: [eval_static_initializer] evaluating initializer of static `C`
// normalize-stderr-test "note: .*\n\n" -> ""
// normalize-stderr-test "thread 'rustc' panicked.*:\n.*\n" -> ""
// rustc-env:RUST_BACKTRACE=0

#![crate_type = "rlib"]

pub static C: u32 = 0 - 1;
//~^ ERROR could not evaluate static initializer