fork/rust

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

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

master
1.2 KiB36 linesraw
1error[E0426]: use of undeclared label `'fo`
2  --> $DIR/suggest-labels.rs:4:15
3   |
4LL |     'foo: loop {
5   |     ---- a label with a similar name is reachable
6LL |         break 'fo;
7   |               ^^^
8   |               |
9   |               undeclared label `'fo`
10   |               help: try using similarly named label: `'foo`
11
12error[E0426]: use of undeclared label `'bor`
13  --> $DIR/suggest-labels.rs:8:18
14   |
15LL |     'bar: loop {
16   |     ---- a label with a similar name is reachable
17LL |         continue 'bor;
18   |                  ^^^^
19   |                  |
20   |                  undeclared label `'bor`
21   |                  help: try using similarly named label: `'bar`
22
23error[E0426]: use of undeclared label `'longlable`
24  --> $DIR/suggest-labels.rs:13:19
25   |
26LL |         'longlabel1: loop {
27   |         ----------- a label with a similar name is reachable
28LL |             break 'longlable;
29   |                   ^^^^^^^^^^
30   |                   |
31   |                   undeclared label `'longlable`
32   |                   help: try using similarly named label: `'longlabel1`
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0426`.