rust/tests/ui/consts/const-labeled-break.rs
2023-01-11 09:32:08 +00:00

12 lines
282 B
Rust

// 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.
#[allow(unreachable_code)]
const _: () = 'a: while break 'a {};
fn main() {}