]> git.lizzy.rs Git - rust.git/blob - src/test/ui/label/label_misspelled_2.stderr
Parse loop labels missing a leading `'`
[rust.git] / src / test / ui / label / label_misspelled_2.stderr
1 error: malformed loop label
2   --> $DIR/label_misspelled_2.rs:10:5
3    |
4 LL |     c: for _ in 0..1 {
5    |     ^ help: use the correct loop label format: `'c`
6
7 error: malformed loop label
8   --> $DIR/label_misspelled_2.rs:13:5
9    |
10 LL |     d: for _ in 0..1 {
11    |     ^ help: use the correct loop label format: `'d`
12
13 error[E0425]: cannot find value `b` in this scope
14   --> $DIR/label_misspelled_2.rs:8:15
15    |
16 LL |     'b: for _ in 0..1 {
17    |     -- a label with a similar name exists
18 LL |         break b;
19    |               ^
20    |               |
21    |               not found in this scope
22    |               help: use the similarly named label: `'b`
23
24 error[E0425]: cannot find value `d` in this scope
25   --> $DIR/label_misspelled_2.rs:14:15
26    |
27 LL |     d: for _ in 0..1 {
28    |     - a label with a similar name exists
29 LL |         break d;
30    |               ^
31    |               |
32    |               not found in this scope
33    |               help: use the similarly named label: `'d`
34
35 error: aborting due to 4 previous errors
36
37 For more information about this error, try `rustc --explain E0425`.