]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-62480.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-62480.stderr
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
12   --> $DIR/issue-62480.rs:8:12
13    |
14 LL |         || break 'a
15    |         -- ^^^^^^^^ cannot `break` inside of a closure
16    |         |
17    |         enclosing closure
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0267, E0767.
22 For more information about an error, try `rustc --explain E0267`.