@@ -3,24 +3,44 @@ error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
33 |
44LL | Empty2() => ()
55 | ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
6+ |
7+ ::: $DIR/auxiliary/empty-struct.rs:3:1
8+ |
9+ LL | pub struct XEmpty6();
10+ | --------------------- similarly named tuple struct `XEmpty6` defined here
611
712error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
813 --> $DIR/empty-struct-unit-pat.rs:24:9
914 |
1015LL | XEmpty2() => ()
1116 | ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
17+ |
18+ ::: $DIR/auxiliary/empty-struct.rs:3:1
19+ |
20+ LL | pub struct XEmpty6();
21+ | --------------------- similarly named tuple struct `XEmpty6` defined here
1222
1323error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
1424 --> $DIR/empty-struct-unit-pat.rs:28:9
1525 |
1626LL | Empty2(..) => ()
1727 | ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
28+ |
29+ ::: $DIR/auxiliary/empty-struct.rs:3:1
30+ |
31+ LL | pub struct XEmpty6();
32+ | --------------------- similarly named tuple struct `XEmpty6` defined here
1833
1934error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
2035 --> $DIR/empty-struct-unit-pat.rs:32:9
2136 |
2237LL | XEmpty2(..) => ()
2338 | ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
39+ |
40+ ::: $DIR/auxiliary/empty-struct.rs:3:1
41+ |
42+ LL | pub struct XEmpty6();
43+ | --------------------- similarly named tuple struct `XEmpty6` defined here
2444
2545error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
2646 --> $DIR/empty-struct-unit-pat.rs:37:9
@@ -35,6 +55,11 @@ LL | XE::XEmpty4() => (),
3555 | ^^^^-------
3656 | |
3757 | help: a tuple variant with a similar name exists: `XEmpty5`
58+ |
59+ ::: $DIR/auxiliary/empty-struct.rs:8:5
60+ |
61+ LL | XEmpty5(),
62+ | --------- similarly named tuple variant `XEmpty5` defined here
3863
3964error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
4065 --> $DIR/empty-struct-unit-pat.rs:46:9
@@ -49,6 +74,11 @@ LL | XE::XEmpty4(..) => (),
4974 | ^^^^-------
5075 | |
5176 | help: a tuple variant with a similar name exists: `XEmpty5`
77+ |
78+ ::: $DIR/auxiliary/empty-struct.rs:8:5
79+ |
80+ LL | XEmpty5(),
81+ | --------- similarly named tuple variant `XEmpty5` defined here
5282
5383error: aborting due to 8 previous errors
5484
0 commit comments