]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/feature-gate-const_panic.rs
Rollup merge of #56217 - frewsxcv:frewsxcv-float-parse, r=QuietMisdreavus
[rust.git] / src / test / ui / consts / const-eval / feature-gate-const_panic.rs
1 fn main() {}
2
3 const Z: () = panic!("cheese");
4 //~^ ERROR panicking in constants is unstable
5
6 const Y: () = unreachable!();
7 //~^ ERROR panicking in constants is unstable
8
9 const X: () = unimplemented!();
10 //~^ ERROR panicking in constants is unstable