diff options
Diffstat (limited to 'tests/ui/array-slice-vec/array-break-length.stderr')
-rw-r--r-- | tests/ui/array-slice-vec/array-break-length.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/array-break-length.stderr b/tests/ui/array-slice-vec/array-break-length.stderr new file mode 100644 index 000000000..2df7b6d7f --- /dev/null +++ b/tests/ui/array-slice-vec/array-break-length.stderr @@ -0,0 +1,15 @@ +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 or labeled block + +error[E0268]: `continue` outside of a loop + --> $DIR/array-break-length.rs:7:17 + | +LL | |_: [_; continue]| {} + | ^^^^^^^^ cannot `continue` outside of a loop + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0268`. |