about summary refs log tree commit diff
path: root/src/test/ui/array-slice-vec
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2022-11-05 01:11:50 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2022-11-05 01:12:58 +0000
commit2f882c014f3bfabb811177d24bfb72e3f6b6d271 (patch)
tree8bf53e1ae1943a2c7f22c62fe72993892380f959 /src/test/ui/array-slice-vec
parent09508489efc223287731fe8abbd2a81bbf7adf8e (diff)
downloadrust-2f882c014f3bfabb811177d24bfb72e3f6b6d271.tar.gz
rust-2f882c014f3bfabb811177d24bfb72e3f6b6d271.zip
Specify that `break` cannot be used outside of loop *or* labeled block
Diffstat (limited to 'src/test/ui/array-slice-vec')
-rw-r--r--src/test/ui/array-slice-vec/array-break-length.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/array-slice-vec/array-break-length.stderr b/src/test/ui/array-slice-vec/array-break-length.stderr
index 93f1c238bcc..2df7b6d7f63 100644
--- a/src/test/ui/array-slice-vec/array-break-length.stderr
+++ b/src/test/ui/array-slice-vec/array-break-length.stderr
@@ -1,8 +1,8 @@
-error[E0268]: `break` outside of a loop
+error[E0268]: `break` outside of a loop or labeled block
   --> $DIR/array-break-length.rs:3:17
    |
 LL |         |_: [_; break]| {}
-   |                 ^^^^^ cannot `break` outside of a loop
+   |                 ^^^^^ cannot `break` outside of a loop or labeled block
 
 error[E0268]: `continue` outside of a loop
   --> $DIR/array-break-length.rs:7:17