1 error[E0268]: `break` outside of loop
2 --> $DIR/break-outside-loop.rs:10:15
5 | ^^^^^ cannot break outside of a loop
7 error[E0268]: `continue` outside of loop
8 --> $DIR/break-outside-loop.rs:11:17
10 LL | if cond() { continue }
11 | ^^^^^^^^ cannot break outside of a loop
13 error[E0267]: `break` inside of a closure
14 --> $DIR/break-outside-loop.rs:17:25
16 LL | if cond() { break }
17 | ^^^^^ cannot break inside of a closure
19 error[E0267]: `continue` inside of a closure
20 --> $DIR/break-outside-loop.rs:18:25
22 LL | if cond() { continue }
23 | ^^^^^^^^ cannot break inside of a closure
25 error[E0268]: `break` outside of loop
26 --> $DIR/break-outside-loop.rs:24:25
28 LL | let unconstrained = break;
29 | ^^^^^ cannot break outside of a loop
31 error: aborting due to 5 previous errors
33 Some errors have detailed explanations: E0267, E0268.
34 For more information about an error, try `rustc --explain E0267`.