1 error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
2 --> $DIR/empty-struct-braces-pat-2.rs:15:9
5 | ---------------- `Empty1` 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 struct pattern syntax instead
19 help: a tuple struct with a similar name exists
24 error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
25 --> $DIR/empty-struct-braces-pat-2.rs:18:9
30 ::: $DIR/auxiliary/empty-struct.rs:1:1
32 LL | pub struct XEmpty1 {}
33 | ------------------ `XEmpty1` defined here
34 LL | pub struct XEmpty2;
35 LL | pub struct XEmpty6();
36 | ------------------ similarly named tuple struct `XEmpty6` defined here
38 help: use struct pattern syntax instead
42 help: a tuple struct with a similar name exists
47 error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
48 --> $DIR/empty-struct-braces-pat-2.rs:21:9
51 | ---------------- `Empty1` defined here
56 ::: $DIR/auxiliary/empty-struct.rs:3:1
58 LL | pub struct XEmpty6();
59 | ------------------ similarly named tuple struct `XEmpty6` defined here
61 help: use struct pattern syntax instead
65 help: a tuple struct with a similar name exists
67 LL | XEmpty6(..) => ()
70 error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
71 --> $DIR/empty-struct-braces-pat-2.rs:24:9
73 LL | XEmpty1(..) => ()
76 ::: $DIR/auxiliary/empty-struct.rs:1:1
78 LL | pub struct XEmpty1 {}
79 | ------------------ `XEmpty1` defined here
80 LL | pub struct XEmpty2;
81 LL | pub struct XEmpty6();
82 | ------------------ similarly named tuple struct `XEmpty6` defined here
84 help: use struct pattern syntax instead
88 help: a tuple struct with a similar name exists
90 LL | XEmpty6(..) => ()
93 error: aborting due to 4 previous errors
95 For more information about this error, try `rustc --explain E0532`.