@@ -225,10 +225,12 @@ error[E0308]: mismatched types
225225LL | break 2;
226226 | ------- expected because of this `break`
227227LL | 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+ | +++++
232234
233235error[E0308]: mismatched types
234236 --> $DIR/loop-break-value.rs:108:9
@@ -237,10 +239,12 @@ LL | break 'a 1;
237239 | ---------- expected because of this `break`
238240...
239241LL | 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+ | +++++
244248
245249error[E0308]: mismatched types
246250 --> $DIR/loop-break-value.rs:120:9
@@ -249,10 +253,12 @@ LL | break 'a 1;
249253 | ---------- expected because of this `break`
250254...
251255LL | 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+ | +++++
256262
257263error[E0308]: mismatched types
258264 --> $DIR/loop-break-value.rs:131:15
@@ -270,10 +276,12 @@ LL | break 2;
270276 | ------- expected because of this `break`
271277LL | loop {
272278LL | 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+ | +++++
277285
278286error[E0308]: mismatched types
279287 --> $DIR/loop-break-value.rs:143:15
@@ -291,10 +299,12 @@ LL | break 'a 2;
291299 | ---------- expected because of this `break`
292300LL | loop {
293301LL | 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+ | +++++
298308
299309error[E0308]: mismatched types
300310 --> $DIR/loop-break-value.rs:155:15
0 commit comments