]> git.lizzy.rs Git - rust.git/blob - src/test/ui/label/label_misspelled_2.stderr
b618690340bb278bd8c7c5ef9ba9762ed4f0f6c7
[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    |     --
18    |     |
19    |     a label with a similar name exists
20    |     a label with a similar name exists
21 LL |         break b;
22    |               ^ not found in this scope
23    |
24 help: use the similarly named label
25    |
26 LL |         break 'b;
27    |               ~~
28 help: use the similarly named label
29    |
30 LL |         break 'b;
31    |               ~~
32
33 error[E0425]: cannot find value `d` in this scope
34   --> $DIR/label_misspelled_2.rs:14:15
35    |
36 LL |     d: for _ in 0..1 {
37    |     -
38    |     |
39    |     a label with a similar name exists
40    |     a label with a similar name exists
41 LL |         break d;
42    |               ^ not found in this scope
43    |
44 help: use the similarly named label
45    |
46 LL |         break 'd;
47    |               ~~
48 help: use the similarly named label
49    |
50 LL |         break 'd;
51    |               ~~
52
53 error: aborting due to 4 previous errors
54
55 For more information about this error, try `rustc --explain E0425`.