rust/src/test/ui/consts/const-eval/const_panic.rs
2018-12-25 21:08:33 -07:00

12 lines
316 B
Rust

#![feature(const_panic)]
#![crate_type = "lib"]
pub const Z: () = panic!("cheese");
//~^ ERROR any use of this value will cause an error
pub const Y: () = unreachable!();
//~^ ERROR any use of this value will cause an error
pub const X: () = unimplemented!();
//~^ ERROR any use of this value will cause an error