]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-labeled-break.rs
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / 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() {}