Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
feature-gate-const_panic.rs
blob: ba5b07239a2006756a85d2649529e7f650160e19 [
file
] [
log
] [
blame
]
fn
main
()
{}
const
Z
:
()
=
panic
!(
"cheese"
);
//~^ ERROR panicking in constants is unstable
const
Y
:
()
=
unreachable
!();
//~^ ERROR panicking in constants is unstable
const
X
:
()
=
unimplemented
!();
//~^ ERROR panicking in constants is unstable