diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2022-11-05 01:11:50 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2022-11-05 01:12:58 +0000 |
| commit | 2f882c014f3bfabb811177d24bfb72e3f6b6d271 (patch) | |
| tree | 8bf53e1ae1943a2c7f22c62fe72993892380f959 /src/test/ui/error-codes | |
| parent | 09508489efc223287731fe8abbd2a81bbf7adf8e (diff) | |
| download | rust-2f882c014f3bfabb811177d24bfb72e3f6b6d271.tar.gz rust-2f882c014f3bfabb811177d24bfb72e3f6b6d271.zip | |
Specify that `break` cannot be used outside of loop *or* labeled block
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0268.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0268.stderr b/src/test/ui/error-codes/E0268.stderr index c926f9e4874..6422e8a9490 100644 --- a/src/test/ui/error-codes/E0268.stderr +++ b/src/test/ui/error-codes/E0268.stderr @@ -1,8 +1,8 @@ -error[E0268]: `break` outside of a loop +error[E0268]: `break` outside of a loop or labeled block --> $DIR/E0268.rs:2:5 | LL | break; - | ^^^^^ cannot `break` outside of a loop + | ^^^^^ cannot `break` outside of a loop or labeled block error: aborting due to previous error |
