]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error[E0767]: use of unreachable label `'a` |
2 | --> $DIR/issue-62480.rs:8:18 | |
3 | | | |
4 | LL | 'a: { | |
5 | | -- unreachable label defined here | |
6 | LL | || break 'a | |
7 | | ^^ unreachable label `'a` | |
8 | | | |
9 | = note: labels are unreachable through functions, closures, async blocks and modules | |
10 | ||
11 | error[E0267]: `break` inside of a closure | |
60c5eb7d XL |
12 | --> $DIR/issue-62480.rs:8:12 |
13 | | | |
14 | LL | || break 'a | |
f035d41b XL |
15 | | -- ^^^^^^^^ cannot `break` inside of a closure |
16 | | | | |
17 | | enclosing closure | |
60c5eb7d | 18 | |
f035d41b | 19 | error: aborting due to 2 previous errors |
60c5eb7d | 20 | |
f035d41b XL |
21 | Some errors have detailed explanations: E0267, E0767. |
22 | For more information about an error, try `rustc --explain E0267`. |