We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4369f03 + 7cafacd commit 0494210Copy full SHA for 0494210
src/test/run-pass/consts/const-labeled-break.rs
@@ -0,0 +1,10 @@
1
+// Using labeled break in a while loop has caused an illegal instruction being
2
+// generated, and an ICE later.
3
+//
4
+// See https://github.com/rust-lang/rust/issues/51350 for more information.
5
+
6
+const CRASH: () = 'a: while break 'a {};
7
8
+fn main() {
9
+ println!("{:?}", CRASH);
10
+}
0 commit comments