@@ -198,20 +198,19 @@ LL | pub struct S(pub u8, pub u8, pub u8);
198
198
error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 3 fields
199
199
--> $DIR/pat-tuple-field-count-cross.rs:24:9
200
200
|
201
- LL | M() => {}
202
- | ^^^ expected 3 fields, found 0
201
+ LL | M() => {}
202
+ | ^^^ expected 3 fields, found 0
203
203
|
204
- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
204
+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
205
205
|
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
215
214
|
216
215
help: use `_` to explicitly ignore each field
217
216
|
@@ -225,20 +224,19 @@ LL | M(..) => {}
225
224
error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 3 fields
226
225
--> $DIR/pat-tuple-field-count-cross.rs:25:11
227
226
|
228
- LL | M(1) => {}
229
- | ^ expected 3 fields, found 1
227
+ LL | M(1) => {}
228
+ | ^ expected 3 fields, found 1
230
229
|
231
- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
230
+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
232
231
|
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
242
240
|
243
241
help: use `_` to explicitly ignore each field
244
242
|
@@ -252,20 +250,19 @@ LL | M(1, ..) => {}
252
250
error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 3 fields
253
251
--> $DIR/pat-tuple-field-count-cross.rs:26:11
254
252
|
255
- LL | M(xyz, abc) => {}
256
- | ^^^ ^^^ expected 3 fields, found 2
253
+ LL | M(xyz, abc) => {}
254
+ | ^^^ ^^^ expected 3 fields, found 2
257
255
|
258
- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
256
+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
259
257
|
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
269
266
|
270
267
help: use `_` to explicitly ignore each field
271
268
|
@@ -275,20 +272,19 @@ LL | M(xyz, abc, _) => {}
275
272
error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
276
273
--> $DIR/pat-tuple-field-count-cross.rs:27:11
277
274
|
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
280
277
|
281
- ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
278
+ ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
282
279
|
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
292
288
293
289
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 0 fields
294
290
--> $DIR/pat-tuple-field-count-cross.rs:36:16
@@ -438,20 +434,19 @@ LL | S(u8, u8, u8),
438
434
error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
439
435
--> $DIR/pat-tuple-field-count-cross.rs:52:9
440
436
|
441
- LL | E2::M() => {}
442
- | ^^^^^^^ expected 3 fields, found 0
437
+ LL | E2::M() => {}
438
+ | ^^^^^^^ expected 3 fields, found 0
443
439
|
444
440
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
445
441
|
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
455
450
|
456
451
help: use `_` to explicitly ignore each field
457
452
|
@@ -465,20 +460,19 @@ LL | E2::M(..) => {}
465
460
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 3 fields
466
461
--> $DIR/pat-tuple-field-count-cross.rs:53:15
467
462
|
468
- LL | E2::M(1) => {}
469
- | ^ expected 3 fields, found 1
463
+ LL | E2::M(1) => {}
464
+ | ^ expected 3 fields, found 1
470
465
|
471
466
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
472
467
|
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
482
476
|
483
477
help: use `_` to explicitly ignore each field
484
478
|
@@ -492,20 +486,19 @@ LL | E2::M(1, ..) => {}
492
486
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
493
487
--> $DIR/pat-tuple-field-count-cross.rs:54:15
494
488
|
495
- LL | E2::M(xyz, abc) => {}
496
- | ^^^ ^^^ expected 3 fields, found 2
489
+ LL | E2::M(xyz, abc) => {}
490
+ | ^^^ ^^^ expected 3 fields, found 2
497
491
|
498
492
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
499
493
|
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
509
502
|
510
503
help: use `_` to explicitly ignore each field
511
504
|
@@ -515,20 +508,19 @@ LL | E2::M(xyz, abc, _) => {}
515
508
error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 3 fields
516
509
--> $DIR/pat-tuple-field-count-cross.rs:55:15
517
510
|
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
520
513
|
521
514
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
522
515
|
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
532
524
533
525
error: aborting due to 28 previous errors
534
526
0 commit comments