1 error[E0268]: `continue` outside of loop
2 --> $DIR/closure-array-break-length.rs:12:13
4 LL | |_: [_; continue]| {}; //~ ERROR: `continue` outside of loop
5 | ^^^^^^^^ cannot break outside of a loop
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
10 LL | while |_: [_; continue]| {} {} //~ ERROR: `break` or `continue` with no label
11 | ^^^^^^^^ unlabeled `continue` in the condition of a `while` loop
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
16 LL | while |_: [_; break]| {} {} //~ ERROR: `break` or `continue` with no label
17 | ^^^^^ unlabeled `break` in the condition of a `while` loop
19 error: aborting due to 3 previous errors
21 Some errors occurred: E0268, E0590.
22 For more information about an error, try `rustc --explain E0268`.