fork/rust

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

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

master
1.0 KiB29 linesraw
1error: expected a label, found an identifier
2  --> $DIR/recover-unticked-labels.rs:5:26
3   |
4LL |     'label: loop { break label 0 };
5   |                          -^^^^
6   |                          |
7   |                          help: labels start with a tick
8
9error: expected a label, found an identifier
10  --> $DIR/recover-unticked-labels.rs:6:29
11   |
12LL |     'label: loop { continue label };
13   |                             -^^^^
14   |                             |
15   |                             help: labels start with a tick
16
17error[E0425]: cannot find value `label` in this scope
18  --> $DIR/recover-unticked-labels.rs:4:26
19   |
20LL |     'label: loop { break label };
21   |     ------               ^^^^^
22   |     |                    |
23   |     |                    not found in this scope
24   |     |                    help: use the similarly named label: `'label`
25   |     a label with a similar name exists
26
27error: aborting due to 3 previous errors
28
29For more information about this error, try `rustc --explain E0425`.