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 }];
}