]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/closures/closure-array-break-length.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / closures / closure-array-break-length.stderr
index 2b8ab9bfc4414938d21f0e0679369feefd3067a9..7e0b0027a6f09a63397f098d6bfbf67bd0b1f772 100644 (file)
@@ -10,11 +10,11 @@ error[E0268]: `continue` outside of a loop
 LL |     while |_: [_; continue]| {} {}
    |                   ^^^^^^^^ cannot `continue` outside of a loop
 
-error[E0268]: `break` outside of a loop
+error[E0268]: `break` outside of a loop or labeled block
   --> $DIR/closure-array-break-length.rs:6:19
    |
 LL |     while |_: [_; break]| {} {}
-   |                   ^^^^^ cannot `break` outside of a loop
+   |                   ^^^^^ cannot `break` outside of a loop or labeled block
 
 error: aborting due to 3 previous errors