2020-04-24 17:22:55 -03:00
|
|
|
//@ compile-flags: -Ztreat-err-as-bug
|
|
|
|
//@ failure-status: 101
|
|
|
|
//@ error-pattern: aborting due to `-Z treat-err-as-bug=1`
|
2023-10-10 08:52:21 +00:00
|
|
|
//@ error-pattern: [eval_static_initializer] evaluating initializer of static `C`
|
2024-06-21 15:15:36 +10:00
|
|
|
//@ normalize-stderr-test: "note: .*\n\n" -> ""
|
|
|
|
//@ normalize-stderr-test: "thread 'rustc' panicked.*:\n.*\n" -> ""
|
2021-02-22 21:07:40 -05:00
|
|
|
//@ rustc-env:RUST_BACKTRACE=0
|
2020-04-24 17:22:55 -03:00
|
|
|
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
|
|
|
|
pub static C: u32 = 0 - 1;
|
|
|
|
//~^ ERROR could not evaluate static initializer
|