diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-12-31 08:01:58 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-12-31 08:01:58 +0900 |
| commit | 50454cf64b1a3e27915973e5f9e5d5f2931aca7b (patch) | |
| tree | 9cc187f6b1813d5e0c9d9a6f8e03d3175bfb6760 /src/test/ui/array-slice-vec/array-break-length.stderr | |
| parent | 6871d43d4cd1f7df246958af6c552911ef7a8933 (diff) | |
| download | rust-50454cf64b1a3e27915973e5f9e5d5f2931aca7b.tar.gz rust-50454cf64b1a3e27915973e5f9e5d5f2931aca7b.zip | |
Move array-slice-vec-related tests
Diffstat (limited to 'src/test/ui/array-slice-vec/array-break-length.stderr')
| -rw-r--r-- | src/test/ui/array-slice-vec/array-break-length.stderr | 15 |
1 files changed, 15 insertions, 0 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 new file mode 100644 index 00000000000..93f1c238bcc --- /dev/null +++ b/src/test/ui/array-slice-vec/array-break-length.stderr @@ -0,0 +1,15 @@ +error[E0268]: `break` outside of a loop + --> $DIR/array-break-length.rs:3:17 + | +LL | |_: [_; break]| {} + | ^^^^^ cannot `break` outside of a loop + +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`. |
