1 error[E0530]: match bindings cannot shadow tuple structs
2 --> $DIR/empty-struct-tuple-pat.rs:22:9
5 | ---------------- the tuple struct `Empty2` is defined here
10 | cannot be named the same as a tuple struct
11 | help: try specify the pattern arguments: `Empty2(..)`
13 error[E0530]: match bindings cannot shadow tuple structs
14 --> $DIR/empty-struct-tuple-pat.rs:25:9
16 LL | use empty_struct::*;
17 | --------------- the tuple struct `XEmpty6` is imported here
22 | cannot be named the same as a tuple struct
23 | help: try specify the pattern arguments: `XEmpty6(..)`
25 error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::Empty4`
26 --> $DIR/empty-struct-tuple-pat.rs:29:9
29 | -------- `E::Empty4` defined here
32 | ^^^^^^^^^ help: use the tuple variant pattern syntax instead: `E::Empty4()`
34 error[E0532]: expected unit struct, unit variant or constant, found tuple variant `XE::XEmpty5`
35 --> $DIR/empty-struct-tuple-pat.rs:33:9
37 LL | XE::XEmpty5 => (),
40 ::: $DIR/auxiliary/empty-struct.rs:7:5
43 | ------- similarly named unit variant `XEmpty4` defined here
45 | ------- `XE::XEmpty5` defined here
47 help: use the tuple variant pattern syntax instead
49 LL | XE::XEmpty5(/* fields */) => (),
50 | ~~~~~~~~~~~~~~~~~~~~~~~~~
51 help: a unit variant with a similar name exists
53 LL | XE::XEmpty4 => (),
56 error: aborting due to 4 previous errors
58 Some errors have detailed explanations: E0530, E0532.
59 For more information about an error, try `rustc --explain E0530`.