| //@ compile-flags: -Ztreat-err-as-bug | |
| //@ failure-status: 101 | |
| //@ normalize-stderr: "note: .*\n\n" -> "" | |
| //@ normalize-stderr: "thread 'rustc'.*panicked.*:\n.*\n" -> "" | |
| //@ rustc-env:RUST_BACKTRACE=0 | |
| #![crate_type = "rlib"] | |
| pub static C: u32 = 0 - 1; | |
| //~^ ERROR attempt to compute `0_u32 - 1_u32`, which would overflow | |
| //~? RAW aborting due to `-Z treat-err-as-bug=1` | |
| //~? RAW [eval_static_initializer] evaluating initializer of static `C` |