Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
issue-62272.rs
blob: ad8589c73788cfc8dc6b2f463fee69185eedaa0d [
file
] [
log
] [
blame
]
// run-pass
// Tests that `loop`s unconditionally-broken-from are allowed in constants.
const
FOO
:
()
=
loop
{
break
;
};
fn
main
()
{
[
FOO
;
{
let
x
;
loop
{
x
=
5
;
break
;
}
x
}];
}