Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
consts
/
unwind-abort.rs
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
();
}