fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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