1 error[E0268]: `break` outside of a loop
2 --> $DIR/array-break-length.rs:3:17
4 LL | |_: [_; break]| {}
5 | ^^^^^ cannot `break` outside of a loop
7 error[E0268]: `continue` outside of a loop
8 --> $DIR/array-break-length.rs:8:17
10 LL | |_: [_; continue]| {}
11 | ^^^^^^^^ cannot `continue` outside of a loop
13 error[E0308]: mismatched types
14 --> $DIR/array-break-length.rs:3:9
16 LL | |_: [_; break]| {}
17 | ^^^^^^^^^^^^^^^^^^ expected (), found closure
19 = note: expected type `()`
20 found type `[closure@$DIR/array-break-length.rs:3:9: 3:27]`
22 error[E0308]: mismatched types
23 --> $DIR/array-break-length.rs:8:9
25 LL | |_: [_; continue]| {}
26 | ^^^^^^^^^^^^^^^^^^^^^ expected (), found closure
28 = note: expected type `()`
29 found type `[closure@$DIR/array-break-length.rs:8:9: 8:30]`
31 error: aborting due to 4 previous errors
33 Some errors have detailed explanations: E0268, E0308.
34 For more information about an error, try `rustc --explain E0268`.