fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0268]: `continue` outside of a loop 2 --> $DIR/closure-array-break-length.rs:2:13 3 | 4LL | |_: [_; continue]| {}; 5 | ^^^^^^^^ cannot `continue` outside of a loop 6 7error[E0268]: `continue` outside of a loop 8 --> $DIR/closure-array-break-length.rs:4:19 9 | 10LL | while |_: [_; continue]| {} {} 11 | ^^^^^^^^ cannot `continue` outside of a loop 12 13error[E0268]: `break` outside of a loop 14 --> $DIR/closure-array-break-length.rs:7:19 15 | 16LL | while |_: [_; break]| {} {} 17 | ^^^^^ cannot `break` outside of a loop 18 19error[E0308]: mismatched types 20 --> $DIR/closure-array-break-length.rs:4:11 21 | 22LL | while |_: [_; continue]| {} {} 23 | ^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found closure 24 | 25 = note: expected type `bool` 26 found closure `[closure@$DIR/closure-array-break-length.rs:4:11: 4:32]` 27 28error[E0308]: mismatched types 29 --> $DIR/closure-array-break-length.rs:7:11 30 | 31LL | while |_: [_; break]| {} {} 32 | ^^^^^^^^^^^^^^^^^^ expected `bool`, found closure 33 | 34 = note: expected type `bool` 35 found closure `[closure@$DIR/closure-array-break-length.rs:7:11: 7:29]` 36 37error: aborting due to 5 previous errors 38 39Some errors have detailed explanations: E0268, E0308. 40For more information about an error, try `rustc --explain E0268`.