@@ -225,10 +225,12 @@ error[E0308]: mismatched types
225
225
LL | break 2;
226
226
| ------- expected because of this `break`
227
227
LL | break;
228
- | ^^^^^
229
- | |
230
- | expected integer, found `()`
231
- | help: give it a value of the expected type: `break value`
228
+ | ^^^^^ expected integer, found `()`
229
+ |
230
+ help: give it a value of the expected type
231
+ |
232
+ LL | break value;
233
+ | +++++
232
234
233
235
error[E0308]: mismatched types
234
236
--> $DIR/loop-break-value.rs:108:9
@@ -237,10 +239,12 @@ LL | break 'a 1;
237
239
| ---------- expected because of this `break`
238
240
...
239
241
LL | break;
240
- | ^^^^^
241
- | |
242
- | expected integer, found `()`
243
- | help: give it a value of the expected type: `break value`
242
+ | ^^^^^ expected integer, found `()`
243
+ |
244
+ help: give it a value of the expected type
245
+ |
246
+ LL | break value;
247
+ | +++++
244
248
245
249
error[E0308]: mismatched types
246
250
--> $DIR/loop-break-value.rs:120:9
@@ -249,10 +253,12 @@ LL | break 'a 1;
249
253
| ---------- expected because of this `break`
250
254
...
251
255
LL | break 'a;
252
- | ^^^^^^^^
253
- | |
254
- | expected integer, found `()`
255
- | help: give it a value of the expected type: `break 'a value`
256
+ | ^^^^^^^^ expected integer, found `()`
257
+ |
258
+ help: give it a value of the expected type
259
+ |
260
+ LL | break 'a value;
261
+ | +++++
256
262
257
263
error[E0308]: mismatched types
258
264
--> $DIR/loop-break-value.rs:131:15
@@ -270,10 +276,12 @@ LL | break 2;
270
276
| ------- expected because of this `break`
271
277
LL | loop {
272
278
LL | break 'a;
273
- | ^^^^^^^^
274
- | |
275
- | expected integer, found `()`
276
- | help: give it a value of the expected type: `break 'a value`
279
+ | ^^^^^^^^ expected integer, found `()`
280
+ |
281
+ help: give it a value of the expected type
282
+ |
283
+ LL | break 'a value;
284
+ | +++++
277
285
278
286
error[E0308]: mismatched types
279
287
--> $DIR/loop-break-value.rs:143:15
@@ -291,10 +299,12 @@ LL | break 'a 2;
291
299
| ---------- expected because of this `break`
292
300
LL | loop {
293
301
LL | break 'a;
294
- | ^^^^^^^^
295
- | |
296
- | expected integer, found `()`
297
- | help: give it a value of the expected type: `break 'a value`
302
+ | ^^^^^^^^ expected integer, found `()`
303
+ |
304
+ help: give it a value of the expected type
305
+ |
306
+ LL | break 'a value;
307
+ | +++++
298
308
299
309
error[E0308]: mismatched types
300
310
--> $DIR/loop-break-value.rs:155:15
0 commit comments