@@ -121,18 +121,18 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 0
121
121
--> $DIR/pat-tuple-field-count-cross.rs:14:12
122
122
|
123
123
LL | Z1(x) => {}
124
- | -- ^ expected 0 fields, found 1
124
+ | ^ expected 0 fields, found 1
125
125
|
126
126
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:2:1
127
127
|
128
128
LL | pub struct Z1();
129
129
| ---------------- tuple struct has 0 fields
130
130
131
131
error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 3 fields
132
- --> $DIR/pat-tuple-field-count-cross.rs:18:10
132
+ --> $DIR/pat-tuple-field-count-cross.rs:18:9
133
133
|
134
134
LL | S() => {}
135
- | - ^^ expected 3 fields, found 0
135
+ | ^ ^^ expected 3 fields, found 0
136
136
|
137
137
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:4:14
138
138
|
@@ -152,7 +152,7 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 3
152
152
--> $DIR/pat-tuple-field-count-cross.rs:19:11
153
153
|
154
154
LL | S(1) => {}
155
- | - ^ expected 3 fields, found 1
155
+ | ^ expected 3 fields, found 1
156
156
|
157
157
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:4:14
158
158
|
@@ -172,7 +172,7 @@ error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has
172
172
--> $DIR/pat-tuple-field-count-cross.rs:20:11
173
173
|
174
174
LL | S(xyz, abc) => {}
175
- | - ^^^ ^^^ expected 3 fields, found 2
175
+ | ^^^ ^^^ expected 3 fields, found 2
176
176
|
177
177
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:4:14
178
178
|
@@ -188,18 +188,18 @@ error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has
188
188
--> $DIR/pat-tuple-field-count-cross.rs:21:11
189
189
|
190
190
LL | S(1, 2, 3, 4) => {}
191
- | - ^ ^ ^ ^ expected 3 fields, found 4
191
+ | ^ ^ ^ ^ expected 3 fields, found 4
192
192
|
193
193
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:4:14
194
194
|
195
195
LL | pub struct S(pub u8, pub u8, pub u8);
196
196
| ------ ------ ------ tuple struct has 3 fields
197
197
198
198
error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 3 fields
199
- --> $DIR/pat-tuple-field-count-cross.rs:24:10
199
+ --> $DIR/pat-tuple-field-count-cross.rs:24:9
200
200
|
201
201
LL | M() => {}
202
- | - ^^ expected 3 fields, found 0
202
+ | ^ ^^ expected 3 fields, found 0
203
203
|
204
204
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
205
205
|
@@ -226,7 +226,7 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 3
226
226
--> $DIR/pat-tuple-field-count-cross.rs:25:11
227
227
|
228
228
LL | M(1) => {}
229
- | - ^ expected 3 fields, found 1
229
+ | ^ expected 3 fields, found 1
230
230
|
231
231
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
232
232
|
@@ -253,7 +253,7 @@ error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has
253
253
--> $DIR/pat-tuple-field-count-cross.rs:26:11
254
254
|
255
255
LL | M(xyz, abc) => {}
256
- | - ^^^ ^^^ expected 3 fields, found 2
256
+ | ^^^ ^^^ expected 3 fields, found 2
257
257
|
258
258
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
259
259
|
@@ -276,7 +276,7 @@ error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has
276
276
--> $DIR/pat-tuple-field-count-cross.rs:27:11
277
277
|
278
278
LL | M(1, 2, 3, 4) => {}
279
- | - ^ ^ ^ ^ expected 3 fields, found 4
279
+ | ^ ^ ^ ^ expected 3 fields, found 4
280
280
|
281
281
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
282
282
|
@@ -294,18 +294,18 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple variant has
294
294
--> $DIR/pat-tuple-field-count-cross.rs:36:16
295
295
|
296
296
LL | E1::Z1(x) => {}
297
- | ------ ^ expected 0 fields, found 1
297
+ | ^ expected 0 fields, found 1
298
298
|
299
299
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:11:19
300
300
|
301
301
LL | pub enum E1 { Z0, Z1(), S(u8, u8, u8) }
302
302
| ---- tuple variant has 0 fields
303
303
304
304
error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
305
- --> $DIR/pat-tuple-field-count-cross.rs:39:14
305
+ --> $DIR/pat-tuple-field-count-cross.rs:39:9
306
306
|
307
307
LL | E1::S() => {}
308
- | ----- ^^ expected 3 fields, found 0
308
+ | ^^^^^ ^^ expected 3 fields, found 0
309
309
|
310
310
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:11:27
311
311
|
@@ -325,7 +325,7 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple variant has
325
325
--> $DIR/pat-tuple-field-count-cross.rs:40:15
326
326
|
327
327
LL | E1::S(1) => {}
328
- | ----- ^ expected 3 fields, found 1
328
+ | ^ expected 3 fields, found 1
329
329
|
330
330
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:11:27
331
331
|
@@ -345,7 +345,7 @@ error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has
345
345
--> $DIR/pat-tuple-field-count-cross.rs:41:15
346
346
|
347
347
LL | E1::S(xyz, abc) => {}
348
- | ----- ^^^ ^^^ expected 3 fields, found 2
348
+ | ^^^ ^^^ expected 3 fields, found 2
349
349
|
350
350
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:11:27
351
351
|
@@ -361,18 +361,18 @@ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has
361
361
--> $DIR/pat-tuple-field-count-cross.rs:42:15
362
362
|
363
363
LL | E1::S(1, 2, 3, 4) => {}
364
- | ----- ^ ^ ^ ^ expected 3 fields, found 4
364
+ | ^ ^ ^ ^ expected 3 fields, found 4
365
365
|
366
366
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:11:27
367
367
|
368
368
LL | pub enum E1 { Z0, Z1(), S(u8, u8, u8) }
369
369
| -- -- -- tuple variant has 3 fields
370
370
371
371
error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
372
- --> $DIR/pat-tuple-field-count-cross.rs:46:14
372
+ --> $DIR/pat-tuple-field-count-cross.rs:46:9
373
373
|
374
374
LL | E2::S() => {}
375
- | ----- ^^ expected 3 fields, found 0
375
+ | ^^^^^ ^^ expected 3 fields, found 0
376
376
|
377
377
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:14:7
378
378
|
@@ -392,7 +392,7 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple variant has
392
392
--> $DIR/pat-tuple-field-count-cross.rs:47:15
393
393
|
394
394
LL | E2::S(1) => {}
395
- | ----- ^ expected 3 fields, found 1
395
+ | ^ expected 3 fields, found 1
396
396
|
397
397
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:14:7
398
398
|
@@ -412,7 +412,7 @@ error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has
412
412
--> $DIR/pat-tuple-field-count-cross.rs:48:15
413
413
|
414
414
LL | E2::S(xyz, abc) => {}
415
- | ----- ^^^ ^^^ expected 3 fields, found 2
415
+ | ^^^ ^^^ expected 3 fields, found 2
416
416
|
417
417
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:14:7
418
418
|
@@ -428,18 +428,18 @@ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has
428
428
--> $DIR/pat-tuple-field-count-cross.rs:49:15
429
429
|
430
430
LL | E2::S(1, 2, 3, 4) => {}
431
- | ----- ^ ^ ^ ^ expected 3 fields, found 4
431
+ | ^ ^ ^ ^ expected 3 fields, found 4
432
432
|
433
433
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:14:7
434
434
|
435
435
LL | S(u8, u8, u8),
436
436
| -- -- -- tuple variant has 3 fields
437
437
438
438
error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
439
- --> $DIR/pat-tuple-field-count-cross.rs:52:14
439
+ --> $DIR/pat-tuple-field-count-cross.rs:52:9
440
440
|
441
441
LL | E2::M() => {}
442
- | ----- ^^ expected 3 fields, found 0
442
+ | ^^^^^ ^^ expected 3 fields, found 0
443
443
|
444
444
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
445
445
|
@@ -466,7 +466,7 @@ error[E0023]: this pattern has 1 field, but the corresponding tuple variant has
466
466
--> $DIR/pat-tuple-field-count-cross.rs:53:15
467
467
|
468
468
LL | E2::M(1) => {}
469
- | ----- ^ expected 3 fields, found 1
469
+ | ^ expected 3 fields, found 1
470
470
|
471
471
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
472
472
|
@@ -493,7 +493,7 @@ error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has
493
493
--> $DIR/pat-tuple-field-count-cross.rs:54:15
494
494
|
495
495
LL | E2::M(xyz, abc) => {}
496
- | ----- ^^^ ^^^ expected 3 fields, found 2
496
+ | ^^^ ^^^ expected 3 fields, found 2
497
497
|
498
498
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
499
499
|
@@ -516,7 +516,7 @@ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has
516
516
--> $DIR/pat-tuple-field-count-cross.rs:55:15
517
517
|
518
518
LL | E2::M(1, 2, 3, 4) => {}
519
- | ----- ^ ^ ^ ^ expected 3 fields, found 4
519
+ | ^ ^ ^ ^ expected 3 fields, found 4
520
520
|
521
521
::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
522
522
|
0 commit comments