]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-labeled-break.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-labeled-break.rs
1 // run-pass
2
3 // Using labeled break in a while loop has caused an illegal instruction being
4 // generated, and an ICE later.
5 //
6 // See https://github.com/rust-lang/rust/issues/51350 for more information.
7
8 #[allow(unreachable_code)]
9 const _: () = 'a: while break 'a {};
10
11 fn main() {}