1 error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
2 --> $DIR/empty-struct-unit-pat.rs:21:9
5 | -------------- `Empty2` defined here
10 ::: $DIR/auxiliary/empty-struct.rs:3:1
12 LL | pub struct XEmpty6();
13 | --------------------- similarly named tuple struct `XEmpty6` defined here
15 help: use this syntax instead
19 help: a tuple struct with a similar name exists
24 error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
25 --> $DIR/empty-struct-unit-pat.rs:24:9
30 ::: $DIR/auxiliary/empty-struct.rs:2:1
32 LL | pub struct XEmpty2;
33 | ------------------- `XEmpty2` defined here
34 LL | pub struct XEmpty6();
35 | --------------------- similarly named tuple struct `XEmpty6` defined here
37 help: use this syntax instead
41 help: a tuple struct with a similar name exists
46 error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
47 --> $DIR/empty-struct-unit-pat.rs:28:9
50 | -------------- `Empty2` defined here
55 ::: $DIR/auxiliary/empty-struct.rs:3:1
57 LL | pub struct XEmpty6();
58 | --------------------- similarly named tuple struct `XEmpty6` defined here
60 help: use this syntax instead
64 help: a tuple struct with a similar name exists
66 LL | XEmpty6(..) => ()
69 error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
70 --> $DIR/empty-struct-unit-pat.rs:32:9
72 LL | XEmpty2(..) => ()
75 ::: $DIR/auxiliary/empty-struct.rs:2:1
77 LL | pub struct XEmpty2;
78 | ------------------- `XEmpty2` defined here
79 LL | pub struct XEmpty6();
80 | --------------------- similarly named tuple struct `XEmpty6` defined here
82 help: use this syntax instead
86 help: a tuple struct with a similar name exists
88 LL | XEmpty6(..) => ()
91 error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
92 --> $DIR/empty-struct-unit-pat.rs:37:9
95 | ------ `E::Empty4` defined here
97 LL | E::Empty4() => ()
98 | ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
100 error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
101 --> $DIR/empty-struct-unit-pat.rs:41:9
103 LL | XE::XEmpty4() => (),
106 ::: $DIR/auxiliary/empty-struct.rs:7:5
109 | ------- `XE::XEmpty4` defined here
111 | --------- similarly named tuple variant `XEmpty5` defined here
113 help: use this syntax instead
115 LL | XE::XEmpty4 => (),
117 help: a tuple variant with a similar name exists
119 LL | XE::XEmpty5() => (),
122 error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
123 --> $DIR/empty-struct-unit-pat.rs:46:9
126 | ------ `E::Empty4` defined here
128 LL | E::Empty4(..) => ()
129 | ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
131 error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
132 --> $DIR/empty-struct-unit-pat.rs:50:9
134 LL | XE::XEmpty4(..) => (),
137 ::: $DIR/auxiliary/empty-struct.rs:7:5
140 | ------- `XE::XEmpty4` defined here
142 | --------- similarly named tuple variant `XEmpty5` defined here
144 help: use this syntax instead
146 LL | XE::XEmpty4 => (),
148 help: a tuple variant with a similar name exists
150 LL | XE::XEmpty5(..) => (),
153 error: aborting due to 8 previous errors
155 For more information about this error, try `rustc --explain E0532`.