]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-eval/const-eval-query-stack.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-eval / const-eval-query-stack.rs
1 // compile-flags: -Ztreat-err-as-bug=1
2 // failure-status: 101
3 // rustc-env:RUST_BACKTRACE=1
4 // normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> ""
5 // normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> ""
6 // normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
7 // normalize-stderr-test "note: compiler flags.*\n\n" -> ""
8 // normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
9 // normalize-stderr-test "thread.*panicked.*\n" -> ""
10 // normalize-stderr-test "stack backtrace:\n" -> ""
11 // normalize-stderr-test "\s\d{1,}: .*\n" -> ""
12 // normalize-stderr-test "\s at .*\n" -> ""
13 // normalize-stderr-test ".*note: Some details.*\n" -> ""
14
15 #![allow(unconditional_panic)]
16
17 const X: i32 = 1 / 0; //~ERROR constant
18
19 fn main() {
20 let x: &'static i32 = &X;
21 println!("x={}", x);
22 }