]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-array-break-length.stderr
139153992e27402d8a1fd1636ceaff4cd17c17bd
[rust.git] / src / test / ui / closure-array-break-length.stderr
1 error[E0268]: `continue` outside of loop
2   --> $DIR/closure-array-break-length.rs:12:13
3    |
4 LL |     |_: [_; continue]| {}; //~ ERROR: `continue` outside of loop
5    |             ^^^^^^^^ cannot break outside of a loop
6
7 error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
8   --> $DIR/closure-array-break-length.rs:14:19
9    |
10 LL |     while |_: [_; continue]| {} {} //~ ERROR: `break` or `continue` with no label
11    |                   ^^^^^^^^ unlabeled `continue` in the condition of a `while` loop
12
13 error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
14   --> $DIR/closure-array-break-length.rs:16:19
15    |
16 LL |     while |_: [_; break]| {} {} //~ ERROR: `break` or `continue` with no label
17    |                   ^^^^^ unlabeled `break` in the condition of a `while` loop
18
19 error: aborting due to 3 previous errors
20
21 Some errors occurred: E0268, E0590.
22 For more information about an error, try `rustc --explain E0268`.