]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-labeled-break.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.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() {}