4 const MSG: &str = "hello";
6 const A: () = std::panic!("blÄhaj");
7 //~^ ERROR evaluation of constant value failed
9 const B: () = std::panic!();
10 //~^ ERROR evaluation of constant value failed
12 const C: () = std::unreachable!();
13 //~^ ERROR evaluation of constant value failed
15 const D: () = std::unimplemented!();
16 //~^ ERROR evaluation of constant value failed
18 const E: () = std::panic!("{}", MSG);
19 //~^ ERROR evaluation of constant value failed
21 const A_CORE: () = core::panic!("shark");
22 //~^ ERROR evaluation of constant value failed
24 const B_CORE: () = core::panic!();
25 //~^ ERROR evaluation of constant value failed
27 const C_CORE: () = core::unreachable!();
28 //~^ ERROR evaluation of constant value failed
30 const D_CORE: () = core::unimplemented!();
31 //~^ ERROR evaluation of constant value failed
33 const E_CORE: () = core::panic!("{}", MSG);
34 //~^ ERROR evaluation of constant value failed