]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array-break-length.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / array-break-length.stderr
1 error[E0268]: `break` outside of loop
2   --> $DIR/array-break-length.rs:13:17
3    |
4 LL |         |_: [_; break]| {} //~ ERROR: `break` outside of loop
5    |                 ^^^^^ cannot break outside of a loop
6
7 error[E0268]: `continue` outside of loop
8   --> $DIR/array-break-length.rs:17:17
9    |
10 LL |         |_: [_; continue]| {} //~ ERROR: `continue` outside of loop
11    |                 ^^^^^^^^ cannot break outside of a loop
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0268`.