blob: f9011f908a75e90ae3cc0d875fb8fe6d0db48ec5 [file] [log] [blame]
// check-pass
#![feature(unwind_attributes, const_panic)]
// `#[unwind(aborts)]` is okay for a `const fn`. We don't unwind in const-eval anyways.
#[unwind(aborts)]
const fn foo() {
panic!()
}
const fn bar() {
foo();
}
fn main() {
bar();
}