]> git.proxmox.com Git - rustc.git/blob - tests/ui/treat-err-as-bug/err.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / treat-err-as-bug / err.rs
1 // compile-flags: -Ztreat-err-as-bug
2 // failure-status: 101
3 // error-pattern: aborting due to `-Z treat-err-as-bug=1`
4 // error-pattern: [eval_to_allocation_raw] const-evaluating + checking `C`
5 // normalize-stderr-test "note: .*\n\n" -> ""
6 // normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
7 // rustc-env:RUST_BACKTRACE=0
8
9 #![crate_type = "rlib"]
10
11 pub static C: u32 = 0 - 1;
12 //~^ ERROR could not evaluate static initializer