]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0767.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / error-codes / E0767.stderr
1 error[E0767]: use of unreachable label `'a`
2   --> $DIR/E0767.rs:5:26
3    |
4 LL |     'a: loop {
5    |     -- unreachable label defined here
6 ...
7 LL |             loop { break 'a; }
8    |                          ^^ unreachable label `'a`
9    |
10    = note: labels are unreachable through functions, closures, async blocks and modules
11
12 error[E0308]: mismatched types
13   --> $DIR/E0767.rs:3:9
14    |
15 LL | /         || {
16 LL | |
17 LL | |             loop { break 'a; }
18 LL | |         }
19    | |_________^ expected `()`, found closure
20    |
21    = note: expected unit type `()`
22                 found closure `[closure@$DIR/E0767.rs:3:9: 3:11]`
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0308, E0767.
27 For more information about an error, try `rustc --explain E0308`.