]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-labeled-break.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / const-labeled-break.rs
CommitLineData
f035d41b
XL
1// run-pass
2
48663c56
XL
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
f035d41b
XL
8#[allow(unreachable_code)]
9const _: () = 'a: while break 'a {};
48663c56 10
416331ca 11fn main() {}