+++ /dev/null
-// 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() {
- println!("{:?}", CRASH);
-}
--- /dev/null
+// 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 {};
+//~^ ERROR constant contains unimplemented expression type
+
+fn main() {}
--- /dev/null
+error[E0019]: constant contains unimplemented expression type
+ --> $DIR/const-labeled-break.rs:6:19
+ |
+LL | const CRASH: () = 'a: while break 'a {};
+ | ^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0019`.