]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/closure-array-break-length.stderr
Add a test for break
[rust.git] / src / test / ui / closure-array-break-length.stderr
index 7cedcb254d697342a25d2d556cb63f87fe9219b0..139153992e27402d8a1fd1636ceaff4cd17c17bd 100644 (file)
@@ -10,7 +10,13 @@ error[E0590]: `break` or `continue` with no label in the condition of a `while`
 LL |     while |_: [_; continue]| {} {} //~ ERROR: `break` or `continue` with no label
    |                   ^^^^^^^^ unlabeled `continue` in the condition of a `while` loop
 
-error: aborting due to 2 previous errors
+error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
+  --> $DIR/closure-array-break-length.rs:16:19
+   |
+LL |     while |_: [_; break]| {} {} //~ ERROR: `break` or `continue` with no label
+   |                   ^^^^^ unlabeled `break` in the condition of a `while` loop
+
+error: aborting due to 3 previous errors
 
 Some errors occurred: E0268, E0590.
 For more information about an error, try `rustc --explain E0268`.