]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-labeled-break.rs
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / consts / const-labeled-break.rs
1 // build-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 const CRASH: () = 'a: while break 'a {};
9
10 fn main() {}