]> git.lizzy.rs Git - rust.git/blob - src/test/ui/treat-err-as-bug/err.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / 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