@@ -3,24 +3,44 @@ error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
3
3
|
4
4
LL | Empty2() => ()
5
5
| ^^^^^^ 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
6
11
7
12
error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
8
13
--> $DIR/empty-struct-unit-pat.rs:24:9
9
14
|
10
15
LL | XEmpty2() => ()
11
16
| ^^^^^^^ 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
12
22
13
23
error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
14
24
--> $DIR/empty-struct-unit-pat.rs:28:9
15
25
|
16
26
LL | Empty2(..) => ()
17
27
| ^^^^^^ 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
18
33
19
34
error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
20
35
--> $DIR/empty-struct-unit-pat.rs:32:9
21
36
|
22
37
LL | XEmpty2(..) => ()
23
38
| ^^^^^^^ 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
24
44
25
45
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
26
46
--> $DIR/empty-struct-unit-pat.rs:37:9
@@ -35,6 +55,11 @@ LL | XE::XEmpty4() => (),
35
55
| ^^^^-------
36
56
| |
37
57
| 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
38
63
39
64
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
40
65
--> $DIR/empty-struct-unit-pat.rs:46:9
@@ -49,6 +74,11 @@ LL | XE::XEmpty4(..) => (),
49
74
| ^^^^-------
50
75
| |
51
76
| 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
52
82
53
83
error: aborting due to 8 previous errors
54
84
0 commit comments