@@ -198,20 +198,19 @@ LL | pub struct S(pub u8, pub u8, pub u8);
198198error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 3 fields
199199 --> $DIR/pat-tuple-field-count-cross.rs:24:9
200200 |
201- LL | M() => {}
202- | ^^^ expected 3 fields, found 0
201+ LL | M() => {}
202+ | ^^^ expected 3 fields, found 0
203203 |
204- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
204+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
205205 |
206- LL | / pub struct M(
207- LL | | pub u8,
208- | | ------
209- LL | | pub u8,
210- | | ------
211- LL | | pub u8,
212- | | ------ tuple struct has 3 fields
213- LL | | );
214- | |__- tuple struct defined here
206+ LL | pub struct M(
207+ | - tuple struct defined here
208+ LL | pub u8,
209+ | ------
210+ LL | pub u8,
211+ | ------
212+ LL | pub u8,
213+ | ------ tuple struct has 3 fields
215214 |
216215help: use `_` to explicitly ignore each field
217216 |
@@ -225,20 +224,19 @@ LL | M(..) => {}
225224error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 3 fields
226225 --> $DIR/pat-tuple-field-count-cross.rs:25:11
227226 |
228- LL | M(1) => {}
229- | ^ expected 3 fields, found 1
227+ LL | M(1) => {}
228+ | ^ expected 3 fields, found 1
230229 |
231- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
230+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
232231 |
233- LL | / pub struct M(
234- LL | | pub u8,
235- | | ------
236- LL | | pub u8,
237- | | ------
238- LL | | pub u8,
239- | | ------ tuple struct has 3 fields
240- LL | | );
241- | |__- tuple struct defined here
232+ LL | pub struct M(
233+ | - tuple struct defined here
234+ LL | pub u8,
235+ | ------
236+ LL | pub u8,
237+ | ------
238+ LL | pub u8,
239+ | ------ tuple struct has 3 fields
242240 |
243241help: use `_` to explicitly ignore each field
244242 |
@@ -252,20 +250,19 @@ LL | M(1, ..) => {}
252250error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 3 fields
253251 --> $DIR/pat-tuple-field-count-cross.rs:26:11
254252 |
255- LL | M(xyz, abc) => {}
256- | ^^^ ^^^ expected 3 fields, found 2
253+ LL | M(xyz, abc) => {}
254+ | ^^^ ^^^ expected 3 fields, found 2
257255 |
258- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
256+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
259257 |
260- LL | / pub struct M(
261- LL | | pub u8,
262- | | ------
263- LL | | pub u8,
264- | | ------
265- LL | | pub u8,
266- | | ------ tuple struct has 3 fields
267- LL | | );
268- | |__- tuple struct defined here
258+ LL | pub struct M(
259+ | - tuple struct defined here
260+ LL | pub u8,
261+ | ------
262+ LL | pub u8,
263+ | ------
264+ LL | pub u8,
265+ | ------ tuple struct has 3 fields
269266 |
270267help: use `_` to explicitly ignore each field
271268 |
@@ -275,20 +272,19 @@ LL | M(xyz, abc, _) => {}
275272error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
276273 --> $DIR/pat-tuple-field-count-cross.rs:27:11
277274 |
278- LL | M(1, 2, 3, 4) => {}
279- | ^ ^ ^ ^ expected 3 fields, found 4
275+ LL | M(1, 2, 3, 4) => {}
276+ | ^ ^ ^ ^ expected 3 fields, found 4
280277 |
281- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
278+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
282279 |
283- LL | / pub struct M(
284- LL | | pub u8,
285- | | ------
286- LL | | pub u8,
287- | | ------
288- LL | | pub u8,
289- | | ------ tuple struct has 3 fields
290- LL | | );
291- | |__- tuple struct defined here
280+ LL | pub struct M(
281+ | - tuple struct defined here
282+ LL | pub u8,
283+ | ------
284+ LL | pub u8,
285+ | ------
286+ LL | pub u8,
287+ | ------ tuple struct has 3 fields
292288
293289error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 0 fields
294290 --> $DIR/pat-tuple-field-count-cross.rs:36:16
@@ -438,20 +434,19 @@ LL | S(u8, u8, u8),
438434error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
439435 --> $DIR/pat-tuple-field-count-cross.rs:52:9
440436 |
441- LL | E2::M() => {}
442- | ^^^^^^^ expected 3 fields, found 0
437+ LL | E2::M() => {}
438+ | ^^^^^^^ expected 3 fields, found 0
443439 |
444440 ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
445441 |
446- LL | / M(
447- LL | | u8,
448- | | --
449- LL | | u8,
450- | | --
451- LL | | u8,
452- | | -- tuple variant has 3 fields
453- LL | | ),
454- | |_____- tuple variant defined here
442+ LL | M(
443+ | - tuple variant defined here
444+ LL | u8,
445+ | --
446+ LL | u8,
447+ | --
448+ LL | u8,
449+ | -- tuple variant has 3 fields
455450 |
456451help: use `_` to explicitly ignore each field
457452 |
@@ -465,20 +460,19 @@ LL | E2::M(..) => {}
465460error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 3 fields
466461 --> $DIR/pat-tuple-field-count-cross.rs:53:15
467462 |
468- LL | E2::M(1) => {}
469- | ^ expected 3 fields, found 1
463+ LL | E2::M(1) => {}
464+ | ^ expected 3 fields, found 1
470465 |
471466 ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
472467 |
473- LL | / M(
474- LL | | u8,
475- | | --
476- LL | | u8,
477- | | --
478- LL | | u8,
479- | | -- tuple variant has 3 fields
480- LL | | ),
481- | |_____- tuple variant defined here
468+ LL | M(
469+ | - tuple variant defined here
470+ LL | u8,
471+ | --
472+ LL | u8,
473+ | --
474+ LL | u8,
475+ | -- tuple variant has 3 fields
482476 |
483477help: use `_` to explicitly ignore each field
484478 |
@@ -492,20 +486,19 @@ LL | E2::M(1, ..) => {}
492486error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
493487 --> $DIR/pat-tuple-field-count-cross.rs:54:15
494488 |
495- LL | E2::M(xyz, abc) => {}
496- | ^^^ ^^^ expected 3 fields, found 2
489+ LL | E2::M(xyz, abc) => {}
490+ | ^^^ ^^^ expected 3 fields, found 2
497491 |
498492 ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
499493 |
500- LL | / M(
501- LL | | u8,
502- | | --
503- LL | | u8,
504- | | --
505- LL | | u8,
506- | | -- tuple variant has 3 fields
507- LL | | ),
508- | |_____- tuple variant defined here
494+ LL | M(
495+ | - tuple variant defined here
496+ LL | u8,
497+ | --
498+ LL | u8,
499+ | --
500+ LL | u8,
501+ | -- tuple variant has 3 fields
509502 |
510503help: use `_` to explicitly ignore each field
511504 |
@@ -515,20 +508,19 @@ LL | E2::M(xyz, abc, _) => {}
515508error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 3 fields
516509 --> $DIR/pat-tuple-field-count-cross.rs:55:15
517510 |
518- LL | E2::M(1, 2, 3, 4) => {}
519- | ^ ^ ^ ^ expected 3 fields, found 4
511+ LL | E2::M(1, 2, 3, 4) => {}
512+ | ^ ^ ^ ^ expected 3 fields, found 4
520513 |
521514 ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
522515 |
523- LL | / M(
524- LL | | u8,
525- | | --
526- LL | | u8,
527- | | --
528- LL | | u8,
529- | | -- tuple variant has 3 fields
530- LL | | ),
531- | |_____- tuple variant defined here
516+ LL | M(
517+ | - tuple variant defined here
518+ LL | u8,
519+ | --
520+ LL | u8,
521+ | --
522+ LL | u8,
523+ | -- tuple variant has 3 fields
532524
533525error: aborting due to 28 previous errors
534526
0 commit comments