blob: 9bc63d9328c69342d1f720732c2ef83f5a0bb3c8 [file] [log] [blame]
#![feature(unwind_attributes, const_panic)]
#[unwind(aborts)]
const fn foo() {
panic!() //~ ERROR any use of this value will cause an error
}
const _: () = foo();
// Ensure that the CTFE engine handles calls to `#[unwind(aborts)]` gracefully
fn main() {
let _ = foo();
}