rust/tests/ui/consts/const-labeled-break.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
282 B
Rust
Raw Normal View History

2020-06-25 19:43:48 -05:00
// run-pass
// Using labeled break in a while loop has caused an illegal instruction being
// generated, and an ICE later.
//
// See https://github.com/rust-lang/rust/issues/51350 for more information.
2020-06-25 19:43:48 -05:00
#[allow(unreachable_code)]
const _: () = 'a: while break 'a {};
fn main() {}