2018-06-23 11:52:45 +01:00
|
|
|
error[E0268]: `continue` outside of loop
|
|
|
|
--> $DIR/closure-array-break-length.rs:12:13
|
|
|
|
|
|
|
|
|
LL | |_: [_; continue]| {}; //~ ERROR: `continue` outside of loop
|
|
|
|
| ^^^^^^^^ cannot break outside of a loop
|
|
|
|
|
2018-06-23 13:12:15 +01:00
|
|
|
error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
|
|
|
|
--> $DIR/closure-array-break-length.rs:14:19
|
|
|
|
|
|
|
|
|
LL | while |_: [_; continue]| {} {} //~ ERROR: `break` or `continue` with no label
|
|
|
|
| ^^^^^^^^ unlabeled `continue` in the condition of a `while` loop
|
|
|
|
|
2018-06-23 13:21:09 +01:00
|
|
|
error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
|
|
|
|
--> $DIR/closure-array-break-length.rs:16:19
|
|
|
|
|
|
|
|
|
LL | while |_: [_; break]| {} {} //~ ERROR: `break` or `continue` with no label
|
|
|
|
| ^^^^^ unlabeled `break` in the condition of a `while` loop
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-06-23 11:52:45 +01:00
|
|
|
|
2018-06-23 13:12:15 +01:00
|
|
|
Some errors occurred: E0268, E0590.
|
|
|
|
For more information about an error, try `rustc --explain E0268`.
|