@@ -2,10 +2,7 @@ error[E0425]: cannot find value `while_loop` in this scope
2
2
--> $DIR/label_misspelled.rs:6:9
3
3
|
4
4
LL | 'while_loop: while true {
5
- | -----------
6
- | |
7
- | a label with a similar name exists
8
- | a label with a similar name exists
5
+ | ----------- a label with a similar name exists
9
6
LL |
10
7
LL | while_loop;
11
8
| ^^^^^^^^^^ not found in this scope
@@ -14,10 +11,7 @@ error[E0425]: cannot find value `while_let` in this scope
14
11
--> $DIR/label_misspelled.rs:11:9
15
12
|
16
13
LL | 'while_let: while let Some(_) = Some(()) {
17
- | ----------
18
- | |
19
- | a label with a similar name exists
20
- | a label with a similar name exists
14
+ | ---------- a label with a similar name exists
21
15
LL |
22
16
LL | while_let;
23
17
| ^^^^^^^^^ not found in this scope
@@ -26,10 +20,7 @@ error[E0425]: cannot find value `for_loop` in this scope
26
20
--> $DIR/label_misspelled.rs:16:9
27
21
|
28
22
LL | 'for_loop: for _ in 0..3 {
29
- | ---------
30
- | |
31
- | a label with a similar name exists
32
- | a label with a similar name exists
23
+ | --------- a label with a similar name exists
33
24
LL |
34
25
LL | for_loop;
35
26
| ^^^^^^^^ not found in this scope
@@ -38,10 +29,7 @@ error[E0425]: cannot find value `LOOP` in this scope
38
29
--> $DIR/label_misspelled.rs:21:9
39
30
|
40
31
LL | 'LOOP: loop {
41
- | -----
42
- | |
43
- | a label with a similar name exists
44
- | a label with a similar name exists
32
+ | ----- a label with a similar name exists
45
33
LL |
46
34
LL | LOOP;
47
35
| ^^^^ not found in this scope
@@ -50,81 +38,45 @@ error[E0425]: cannot find value `LOOP` in this scope
50
38
--> $DIR/label_misspelled.rs:28:15
51
39
|
52
40
LL | 'LOOP: loop {
53
- | -----
54
- | |
55
- | a label with a similar name exists
56
- | a label with a similar name exists
41
+ | ----- a label with a similar name exists
57
42
LL | break LOOP;
58
- | ^^^^ not found in this scope
59
- |
60
- help: use the similarly named label
61
- |
62
- LL | break 'LOOP;
63
- | ~~~~~
64
- help: use the similarly named label
65
- |
66
- LL | break 'LOOP;
67
- | ~~~~~
43
+ | ^^^^
44
+ | |
45
+ | not found in this scope
46
+ | help: use the similarly named label: `'LOOP`
68
47
69
48
error[E0425]: cannot find value `while_loop` in this scope
70
49
--> $DIR/label_misspelled.rs:32:15
71
50
|
72
51
LL | 'while_loop: while true {
73
- | -----------
74
- | |
75
- | a label with a similar name exists
76
- | a label with a similar name exists
52
+ | ----------- a label with a similar name exists
77
53
LL | break while_loop;
78
- | ^^^^^^^^^^ not found in this scope
79
- |
80
- help: use the similarly named label
81
- |
82
- LL | break 'while_loop;
83
- | ~~~~~~~~~~~
84
- help: use the similarly named label
85
- |
86
- LL | break 'while_loop;
87
- | ~~~~~~~~~~~
54
+ | ^^^^^^^^^^
55
+ | |
56
+ | not found in this scope
57
+ | help: use the similarly named label: `'while_loop`
88
58
89
59
error[E0425]: cannot find value `while_let` in this scope
90
60
--> $DIR/label_misspelled.rs:36:15
91
61
|
92
62
LL | 'while_let: while let Some(_) = Some(()) {
93
- | ----------
94
- | |
95
- | a label with a similar name exists
96
- | a label with a similar name exists
63
+ | ---------- a label with a similar name exists
97
64
LL | break while_let;
98
- | ^^^^^^^^^ not found in this scope
99
- |
100
- help: use the similarly named label
101
- |
102
- LL | break 'while_let;
103
- | ~~~~~~~~~~
104
- help: use the similarly named label
105
- |
106
- LL | break 'while_let;
107
- | ~~~~~~~~~~
65
+ | ^^^^^^^^^
66
+ | |
67
+ | not found in this scope
68
+ | help: use the similarly named label: `'while_let`
108
69
109
70
error[E0425]: cannot find value `for_loop` in this scope
110
71
--> $DIR/label_misspelled.rs:40:15
111
72
|
112
73
LL | 'for_loop: for _ in 0..3 {
113
- | ---------
114
- | |
115
- | a label with a similar name exists
116
- | a label with a similar name exists
74
+ | --------- a label with a similar name exists
117
75
LL | break for_loop;
118
- | ^^^^^^^^ not found in this scope
119
- |
120
- help: use the similarly named label
121
- |
122
- LL | break 'for_loop;
123
- | ~~~~~~~~~
124
- help: use the similarly named label
125
- |
126
- LL | break 'for_loop;
127
- | ~~~~~~~~~
76
+ | ^^^^^^^^
77
+ | |
78
+ | not found in this scope
79
+ | help: use the similarly named label: `'for_loop`
128
80
129
81
warning: unused label
130
82
--> $DIR/label_misspelled.rs:4:5
0 commit comments