summary refs log tree commit diff
path: root/src/test/ui/consts/const-labeled-break.rs
blob: 36e308ade9c54323f2d8c75e1d15e5616a386adf (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

// Using labeled break in a while loop has caused an illegal instruction being
// generated, and an ICE later.
//
// See https://github.com/rust-lang/rust/issues/51350 for more information.

const CRASH: () = 'a: while break 'a {};

fn main() {}