fork/rust

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

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

master
784 B27 linesraw
1error[E0767]: use of unreachable label `'a`
2  --> $DIR/E0767.rs:5:26
3   |
4LL |     'a: loop {
5   |     -- unreachable label defined here
6...
7LL |             loop { break 'a; }
8   |                          ^^ unreachable label `'a`
9   |
10   = note: labels are unreachable through functions, closures, async blocks and modules
11
12error[E0308]: mismatched types
13  --> $DIR/E0767.rs:3:9
14   |
15LL | /         || {
16LL | |
17LL | |             loop { break 'a; }
18LL | |         }
19   | |_________^ expected `()`, found closure
20   |
21   = note: expected unit type `()`
22                found closure `{closure@$DIR/E0767.rs:3:9: 3:11}`
23
24error: aborting due to 2 previous errors
25
26Some errors have detailed explanations: E0308, E0767.
27For more information about an error, try `rustc --explain E0308`.