1 error[E0423]: expected value, found struct `Empty1`
2 --> $DIR/empty-struct-braces-expr.rs:15:14
5 | ---------------- `Empty1` defined here
10 ::: $DIR/auxiliary/empty-struct.rs:2:1
12 LL | pub struct XEmpty2;
13 | ------------------- similarly named unit struct `XEmpty2` defined here
15 help: use struct literal syntax instead
17 LL | let e1 = Empty1 {};
19 help: a unit struct with a similar name exists
21 LL | let e1 = XEmpty2;
24 error[E0423]: expected function, tuple struct or tuple variant, found struct `Empty1`
25 --> $DIR/empty-struct-braces-expr.rs:16:14
28 | ---------------- `Empty1` defined here
30 LL | let e1 = Empty1();
33 ::: $DIR/auxiliary/empty-struct.rs:2:1
35 LL | pub struct XEmpty2;
36 | ------------------- similarly named unit struct `XEmpty2` defined here
38 help: use struct literal syntax instead
40 LL | let e1 = Empty1 {};
42 help: a unit struct with a similar name exists
44 LL | let e1 = XEmpty2();
47 error[E0423]: expected value, found struct variant `E::Empty3`
48 --> $DIR/empty-struct-braces-expr.rs:18:14
51 | --------- `E::Empty3` defined here
53 LL | let e3 = E::Empty3;
54 | ^^^^^^^^^ help: use struct literal syntax instead: `E::Empty3 {}`
56 error[E0423]: expected function, tuple struct or tuple variant, found struct variant `E::Empty3`
57 --> $DIR/empty-struct-braces-expr.rs:19:14
60 | --------- `E::Empty3` defined here
62 LL | let e3 = E::Empty3();
63 | ^^^^^^^^^^^ help: use struct literal syntax instead: `E::Empty3 {}`
65 error[E0423]: expected value, found struct `XEmpty1`
66 --> $DIR/empty-struct-braces-expr.rs:22:15
68 LL | let xe1 = XEmpty1;
71 ::: $DIR/auxiliary/empty-struct.rs:1:1
73 LL | pub struct XEmpty1 {}
74 | ------------------ `XEmpty1` defined here
75 LL | pub struct XEmpty2;
76 | ------------------- similarly named unit struct `XEmpty2` defined here
78 help: use struct literal syntax instead
80 LL | let xe1 = XEmpty1 {};
82 help: a unit struct with a similar name exists
84 LL | let xe1 = XEmpty2;
87 error[E0423]: expected function, tuple struct or tuple variant, found struct `XEmpty1`
88 --> $DIR/empty-struct-braces-expr.rs:23:15
90 LL | let xe1 = XEmpty1();
93 ::: $DIR/auxiliary/empty-struct.rs:1:1
95 LL | pub struct XEmpty1 {}
96 | ------------------ `XEmpty1` defined here
97 LL | pub struct XEmpty2;
98 | ------------------- similarly named unit struct `XEmpty2` defined here
100 help: use struct literal syntax instead
102 LL | let xe1 = XEmpty1 {};
104 help: a unit struct with a similar name exists
106 LL | let xe1 = XEmpty2();
109 error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
110 --> $DIR/empty-struct-braces-expr.rs:25:19
112 LL | let xe3 = XE::Empty3;
115 | variant or associated item not found in `empty_struct::XE`
116 | help: there is a variant with a similar name: `XEmpty3`
118 error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
119 --> $DIR/empty-struct-braces-expr.rs:26:19
121 LL | let xe3 = XE::Empty3();
124 | variant or associated item not found in `empty_struct::XE`
125 | help: there is a variant with a similar name: `XEmpty3`
127 error[E0599]: no variant named `Empty1` found for enum `empty_struct::XE`
128 --> $DIR/empty-struct-braces-expr.rs:28:9
131 | ^^^^^^ help: there is a variant with a similar name: `XEmpty3`
133 error: aborting due to 9 previous errors
135 Some errors have detailed explanations: E0423, E0599.
136 For more information about an error, try `rustc --explain E0423`.