blob: ada9feec8971e15386755f80553d2fccc55bc2c0 [file] [log] [blame]
#![feature(const_panic)]
#![crate_type = "lib"]
const Z: () = std::panic!("cheese");
//~^ ERROR any use of this value will cause an error
const Z2: () = std::panic!();
//~^ ERROR any use of this value will cause an error
const Y: () = std::unreachable!();
//~^ ERROR any use of this value will cause an error
const X: () = std::unimplemented!();
//~^ ERROR any use of this value will cause an error
const Z_CORE: () = core::panic!("cheese");
//~^ ERROR any use of this value will cause an error
const Z2_CORE: () = core::panic!();
//~^ ERROR any use of this value will cause an error
const Y_CORE: () = core::unreachable!();
//~^ ERROR any use of this value will cause an error
const X_CORE: () = core::unimplemented!();
//~^ ERROR any use of this value will cause an error