]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const_panic.rs
ty: convert `ErrorHandled::Reported` to `ConstKind::Error`.
[rust.git] / src / test / ui / consts / const-eval / const_panic.rs
1 #![feature(const_panic)]
2 #![crate_type = "lib"]
3
4 pub const Z: () = panic!("cheese");
5 //~^ ERROR any use of this value will cause an error
6
7 pub const Y: () = unreachable!();
8 //~^ ERROR any use of this value will cause an error
9
10 pub const X: () = unimplemented!();
11 //~^ ERROR any use of this value will cause an error