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 value, found struct variant `E::Empty3`
25 --> $DIR/empty-struct-braces-expr.rs:18:14
28 | --------- `E::Empty3` defined here
30 LL | let e3 = E::Empty3;
31 | ^^^^^^^^^ help: use struct literal syntax instead: `E::Empty3 {}`
33 error[E0423]: expected function, tuple struct or tuple variant, found struct variant `E::Empty3`
34 --> $DIR/empty-struct-braces-expr.rs:19:14
37 | --------- `E::Empty3` defined here
39 LL | let e3 = E::Empty3();
40 | ^^^^^^^^^^^ help: use struct literal syntax instead: `E::Empty3 {}`
42 error[E0423]: expected value, found struct `XEmpty1`
43 --> $DIR/empty-struct-braces-expr.rs:22:15
45 LL | let xe1 = XEmpty1;
48 ::: $DIR/auxiliary/empty-struct.rs:1:1
50 LL | pub struct XEmpty1 {}
51 | ------------------ `XEmpty1` defined here
52 LL | pub struct XEmpty2;
53 | ------------------ similarly named unit struct `XEmpty2` defined here
55 help: use struct literal syntax instead
57 LL | let xe1 = XEmpty1 {};
59 help: a unit struct with a similar name exists
61 LL | let xe1 = XEmpty2;
64 error[E0423]: expected function, tuple struct or tuple variant, found struct `Empty1`
65 --> $DIR/empty-struct-braces-expr.rs:16:14
68 | ---------------- `Empty1` defined here
70 LL | let e1 = Empty1();
73 ::: $DIR/auxiliary/empty-struct.rs:2:1
75 LL | pub struct XEmpty2;
76 | ------------------ similarly named unit struct `XEmpty2` defined here
78 help: use struct literal syntax instead
80 LL | let e1 = Empty1 {};
82 help: a unit struct with a similar name exists
84 LL | let e1 = 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`.