@@ -35,47 +35,43 @@ LL | LOOP;
35
35
| ^^^^ not found in this scope
36
36
37
37
error[E0425]: cannot find value `LOOP` in this scope
38
- --> $DIR/label_misspelled.rs:29 :15
38
+ --> $DIR/label_misspelled.rs:28 :15
39
39
|
40
40
LL | 'LOOP: loop {
41
41
| ----- a label with a similar name exists
42
- LL |
43
42
LL | break LOOP;
44
43
| ^^^^
45
44
| |
46
45
| not found in this scope
47
46
| help: use the similarly named label: `'LOOP`
48
47
49
48
error[E0425]: cannot find value `while_loop` in this scope
50
- --> $DIR/label_misspelled.rs:34 :15
49
+ --> $DIR/label_misspelled.rs:32 :15
51
50
|
52
51
LL | 'while_loop: while true {
53
52
| ----------- a label with a similar name exists
54
- LL |
55
53
LL | break while_loop;
56
54
| ^^^^^^^^^^
57
55
| |
58
56
| not found in this scope
59
57
| help: use the similarly named label: `'while_loop`
60
58
61
59
error[E0425]: cannot find value `while_let` in this scope
62
- --> $DIR/label_misspelled.rs:39 :15
60
+ --> $DIR/label_misspelled.rs:36 :15
63
61
|
64
62
LL | 'while_let: while let Some(_) = Some(()) {
65
63
| ---------- a label with a similar name exists
66
- LL |
67
64
LL | break while_let;
68
65
| ^^^^^^^^^
69
66
| |
70
67
| not found in this scope
71
68
| help: use the similarly named label: `'while_let`
72
69
73
70
error[E0425]: cannot find value `for_loop` in this scope
74
- --> $DIR/label_misspelled.rs:44 :15
71
+ --> $DIR/label_misspelled.rs:40 :15
75
72
|
76
73
LL | 'for_loop: for _ in 0..3 {
77
74
| --------- a label with a similar name exists
78
- LL |
79
75
LL | break for_loop;
80
76
| ^^^^^^^^
81
77
| |
@@ -120,62 +116,38 @@ warning: unused label
120
116
LL | 'LOOP: loop {
121
117
| ^^^^^
122
118
123
- warning: unused label
124
- --> $DIR/label_misspelled.rs:27:5
125
- |
126
- LL | 'LOOP: loop {
127
- | ^^^^^
128
-
129
- warning: unused label
130
- --> $DIR/label_misspelled.rs:32:5
131
- |
132
- LL | 'while_loop: while true {
133
- | ^^^^^^^^^^^
134
-
135
119
warning: denote infinite loops with `loop { ... }`
136
- --> $DIR/label_misspelled.rs:32 :5
120
+ --> $DIR/label_misspelled.rs:31 :5
137
121
|
138
122
LL | 'while_loop: while true {
139
123
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
140
124
141
125
warning: unused label
142
- --> $DIR/label_misspelled.rs:37:5
143
- |
144
- LL | 'while_let: while let Some(_) = Some(()) {
145
- | ^^^^^^^^^^
146
-
147
- warning: unused label
148
- --> $DIR/label_misspelled.rs:42:5
149
- |
150
- LL | 'for_loop: for _ in 0..3 {
151
- | ^^^^^^^^^
152
-
153
- warning: unused label
154
- --> $DIR/label_misspelled.rs:51:5
126
+ --> $DIR/label_misspelled.rs:47:5
155
127
|
156
128
LL | 'while_loop: while true {
157
129
| ^^^^^^^^^^^
158
130
159
131
warning: denote infinite loops with `loop { ... }`
160
- --> $DIR/label_misspelled.rs:51 :5
132
+ --> $DIR/label_misspelled.rs:47 :5
161
133
|
162
134
LL | 'while_loop: while true {
163
135
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
164
136
165
137
warning: unused label
166
- --> $DIR/label_misspelled.rs:56 :5
138
+ --> $DIR/label_misspelled.rs:52 :5
167
139
|
168
140
LL | 'while_let: while let Some(_) = Some(()) {
169
141
| ^^^^^^^^^^
170
142
171
143
warning: unused label
172
- --> $DIR/label_misspelled.rs:61 :5
144
+ --> $DIR/label_misspelled.rs:57 :5
173
145
|
174
146
LL | 'for_loop: for _ in 0..3 {
175
147
| ^^^^^^^^^
176
148
177
149
error[E0571]: `break` with value from a `while` loop
178
- --> $DIR/label_misspelled.rs:53 :9
150
+ --> $DIR/label_misspelled.rs:49 :9
179
151
|
180
152
LL | 'while_loop: while true {
181
153
| ----------------------- you can't `break` with a value in a `while` loop
@@ -193,7 +165,7 @@ LL | break 'while_loop;
193
165
| ^^^^^^^^^^^
194
166
195
167
error[E0571]: `break` with value from a `while` loop
196
- --> $DIR/label_misspelled.rs:58 :9
168
+ --> $DIR/label_misspelled.rs:54 :9
197
169
|
198
170
LL | 'while_let: while let Some(_) = Some(()) {
199
171
| ---------------------------------------- you can't `break` with a value in a `while` loop
@@ -211,7 +183,7 @@ LL | break 'while_let;
211
183
| ^^^^^^^^^^
212
184
213
185
error[E0571]: `break` with value from a `for` loop
214
- --> $DIR/label_misspelled.rs:63 :9
186
+ --> $DIR/label_misspelled.rs:59 :9
215
187
|
216
188
LL | 'for_loop: for _ in 0..3 {
217
189
| ------------------------ you can't `break` with a value in a `for` loop
@@ -228,7 +200,7 @@ help: alternatively, you might have meant to use the available loop label
228
200
LL | break 'for_loop;
229
201
| ^^^^^^^^^
230
202
231
- error: aborting due to 11 previous errors; 14 warnings emitted
203
+ error: aborting due to 11 previous errors; 10 warnings emitted
232
204
233
205
Some errors have detailed explanations: E0425, E0571.
234
206
For more information about an error, try `rustc --explain E0425`.
0 commit comments