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 `XEmpty1`
25 --> $DIR/empty-struct-braces-expr.rs:22:15
27 LL | let xe1 = XEmpty1;
30 ::: $DIR/auxiliary/empty-struct.rs:1:1
32 LL | pub struct XEmpty1 {}
33 | ------------------ `XEmpty1` defined here
34 LL | pub struct XEmpty2;
35 | ------------------ similarly named unit struct `XEmpty2` defined here
37 help: use struct literal syntax instead
39 LL | let xe1 = XEmpty1 {};
41 help: a unit struct with a similar name exists
43 LL | let xe1 = XEmpty2;
46 error[E0423]: expected function, tuple struct or tuple variant, found struct `Empty1`
47 --> $DIR/empty-struct-braces-expr.rs:16:14
50 | ---------------- `Empty1` defined here
52 LL | let e1 = Empty1();
55 ::: $DIR/auxiliary/empty-struct.rs:2:1
57 LL | pub struct XEmpty2;
58 | ------------------ similarly named unit struct `XEmpty2` defined here
60 help: use struct literal syntax instead
62 LL | let e1 = Empty1 {};
64 help: a unit struct with a similar name exists
66 LL | let e1 = XEmpty2();
69 error[E0533]: expected value, found struct variant `E::Empty3`
70 --> $DIR/empty-struct-braces-expr.rs:18:14
72 LL | let e3 = E::Empty3;
73 | ^^^^^^^^^ not a value
75 error[E0533]: expected value, found struct variant `E::Empty3`
76 --> $DIR/empty-struct-braces-expr.rs:19:14
78 LL | let e3 = E::Empty3();
79 | ^^^^^^^^^ not a value
81 error[E0423]: expected function, tuple struct or tuple variant, found struct `XEmpty1`
82 --> $DIR/empty-struct-braces-expr.rs:23:15
84 LL | let xe1 = XEmpty1();
87 ::: $DIR/auxiliary/empty-struct.rs:1:1
89 LL | pub struct XEmpty1 {}
90 | ------------------ `XEmpty1` defined here
91 LL | pub struct XEmpty2;
92 | ------------------ similarly named unit struct `XEmpty2` defined here
94 help: use struct literal syntax instead
96 LL | let xe1 = XEmpty1 {};
98 help: a unit struct with a similar name exists
100 LL | let xe1 = XEmpty2();
103 error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
104 --> $DIR/empty-struct-braces-expr.rs:25:19
106 LL | let xe3 = XE::Empty3;
109 | variant or associated item not found in `empty_struct::XE`
110 | help: there is a variant with a similar name: `XEmpty3`
112 error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
113 --> $DIR/empty-struct-braces-expr.rs:26:19
115 LL | let xe3 = XE::Empty3();
118 | variant or associated item not found in `empty_struct::XE`
119 | help: there is a variant with a similar name: `XEmpty3`
121 error[E0599]: no variant named `Empty1` found for enum `empty_struct::XE`
122 --> $DIR/empty-struct-braces-expr.rs:28:9
125 | ^^^^^^ help: there is a variant with a similar name: `XEmpty3`
127 error: aborting due to 9 previous errors
129 Some errors have detailed explanations: E0423, E0533, E0599.
130 For more information about an error, try `rustc --explain E0423`.