diff options
| author | Artem Varaksa <aymfst@gmail.com> | 2019-08-21 13:17:59 +0300 |
|---|---|---|
| committer | Artem Varaksa <aymfst@gmail.com> | 2019-08-21 13:17:59 +0300 |
| commit | a8d7ea74a463b0a31817c00a6bb09e9146e97834 (patch) | |
| tree | 21a0f265f1f8edfee7cdcc70e7c1ca211920b4b7 /src/test/ui/array-break-length.stderr | |
| parent | bea0372a1a7a31b81f28cc4d9a83a2dc9a79d008 (diff) | |
| download | rust-a8d7ea74a463b0a31817c00a6bb09e9146e97834.tar.gz rust-a8d7ea74a463b0a31817c00a6bb09e9146e97834.zip | |
improve diagnostics: break/continue wrong context
Diffstat (limited to 'src/test/ui/array-break-length.stderr')
| -rw-r--r-- | src/test/ui/array-break-length.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/array-break-length.stderr b/src/test/ui/array-break-length.stderr index 0e0dc8f623e..45f529bafe7 100644 --- a/src/test/ui/array-break-length.stderr +++ b/src/test/ui/array-break-length.stderr @@ -1,14 +1,14 @@ -error[E0268]: `break` outside of loop +error[E0268]: `break` outside of a loop --> $DIR/array-break-length.rs:3:17 | LL | |_: [_; break]| {} - | ^^^^^ cannot break outside of a loop + | ^^^^^ cannot `break` outside of a loop -error[E0268]: `continue` outside of loop +error[E0268]: `continue` outside of a loop --> $DIR/array-break-length.rs:8:17 | LL | |_: [_; continue]| {} - | ^^^^^^^^ cannot break outside of a loop + | ^^^^^^^^ cannot `continue` outside of a loop error[E0308]: mismatched types --> $DIR/array-break-length.rs:3:9 |
