]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error[E0767]: use of unreachable label `'some_label` |
2 | --> $DIR/issue-66702-break-outside-loop-val.rs:5:18 | |
3 | | | |
4 | LL | 'some_label: loop { | |
5 | | ----------- unreachable label defined here | |
6 | LL | || break 'some_label (); | |
7 | | ^^^^^^^^^^^ unreachable label `'some_label` | |
8 | | | |
9 | = note: labels are unreachable through functions, closures, async blocks and modules | |
10 | ||
60c5eb7d XL |
11 | error[E0267]: `break` inside of a closure |
12 | --> $DIR/issue-66702-break-outside-loop-val.rs:5:12 | |
13 | | | |
14 | LL | || break 'some_label (); | |
15 | | -- ^^^^^^^^^^^^^^^^^^^^ cannot `break` inside of a closure | |
16 | | | | |
17 | | enclosing closure | |
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`. |