]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const_panic_2021.rs
2 #![feature(const_panic)]
5 const A
: () = std
::panic
!("blÄhaj");
6 //~^ ERROR evaluation of constant value failed
8 const B
: () = std
::panic
!();
9 //~^ ERROR evaluation of constant value failed
11 const C
: () = std
::unreachable
!();
12 //~^ ERROR evaluation of constant value failed
14 const D
: () = std
::unimplemented
!();
15 //~^ ERROR evaluation of constant value failed
17 const E
: () = core
::panic
!("shark");
18 //~^ ERROR evaluation of constant value failed
20 const F
: () = core
::panic
!();
21 //~^ ERROR evaluation of constant value failed
23 const G
: () = core
::unreachable
!();
24 //~^ ERROR evaluation of constant value failed
26 const H
: () = core
::unimplemented
!();
27 //~^ ERROR evaluation of constant value failed