1 error[E0423]: expected value, found struct `Empty1`
2 --> $DIR/empty-struct-braces-expr.rs:15:14
7 | did you mean `Empty1 { /* fields */ }`?
8 | help: a unit struct with a similar name exists: `XEmpty2`
10 error[E0423]: expected function, found struct `Empty1`
11 --> $DIR/empty-struct-braces-expr.rs:16:14
13 LL | let e1 = Empty1();
16 | did you mean `Empty1 { /* fields */ }`?
17 | help: a unit struct with a similar name exists: `XEmpty2`
19 error[E0423]: expected value, found struct variant `E::Empty3`
20 --> $DIR/empty-struct-braces-expr.rs:17:14
22 LL | let e3 = E::Empty3;
23 | ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
25 error[E0423]: expected function, found struct variant `E::Empty3`
26 --> $DIR/empty-struct-braces-expr.rs:18:14
28 LL | let e3 = E::Empty3();
29 | ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
31 error[E0423]: expected value, found struct `XEmpty1`
32 --> $DIR/empty-struct-braces-expr.rs:20:15
34 LL | let xe1 = XEmpty1;
37 | did you mean `XEmpty1 { /* fields */ }`?
38 | help: a unit struct with a similar name exists: `XEmpty2`
40 error[E0423]: expected function, found struct `XEmpty1`
41 --> $DIR/empty-struct-braces-expr.rs:21:15
43 LL | let xe1 = XEmpty1();
46 | did you mean `XEmpty1 { /* fields */ }`?
47 | help: a unit struct with a similar name exists: `XEmpty2`
49 error[E0599]: no variant or associated item named `Empty3` found for type `empty_struct::XE` in the current scope
50 --> $DIR/empty-struct-braces-expr.rs:22:19
52 LL | let xe3 = XE::Empty3;
55 | variant or associated item not found in `empty_struct::XE`
56 | help: there is a variant with a similar name: `XEmpty3`
58 error[E0599]: no variant or associated item named `Empty3` found for type `empty_struct::XE` in the current scope
59 --> $DIR/empty-struct-braces-expr.rs:23:19
61 LL | let xe3 = XE::Empty3();
64 | variant or associated item not found in `empty_struct::XE`
65 | help: there is a variant with a similar name: `XEmpty3`
67 error: no variant `Empty1` in enum `empty_struct::XE`
68 --> $DIR/empty-struct-braces-expr.rs:25:9
71 | ^^^^^^ help: there is a variant with a similar name: `XEmpty3`
73 error: aborting due to 9 previous errors
75 Some errors occurred: E0423, E0599.
76 For more information about an error, try `rustc --explain E0423`.