1 error[E0423]: expected value, found struct `Empty1`
2 --> $DIR/empty-struct-braces-expr.rs:25:14
4 LL | let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`
7 | did you mean `XEmpty2`?
8 | did you mean `Empty1 { /* fields */ }`?
10 error[E0423]: expected function, found struct `Empty1`
11 --> $DIR/empty-struct-braces-expr.rs:26:14
13 LL | let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`
16 | did you mean `XEmpty2`?
17 | did you mean `Empty1 { /* fields */ }`?
19 error[E0423]: expected value, found struct variant `E::Empty3`
20 --> $DIR/empty-struct-braces-expr.rs:27:14
22 LL | let e3 = E::Empty3; //~ ERROR expected value, found struct variant `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:28:14
28 LL | let e3 = E::Empty3(); //~ ERROR expected function, found struct variant `E::Empty3`
29 | ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
31 error[E0423]: expected value, found struct `XEmpty1`
32 --> $DIR/empty-struct-braces-expr.rs:30:15
34 LL | let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`
37 | did you mean `XEmpty2`?
38 | did you mean `XEmpty1 { /* fields */ }`?
40 error[E0423]: expected function, found struct `XEmpty1`
41 --> $DIR/empty-struct-braces-expr.rs:31:15
43 LL | let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`
46 | did you mean `XEmpty2`?
47 | did you mean `XEmpty1 { /* fields */ }`?
49 error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
50 --> $DIR/empty-struct-braces-expr.rs:32:19
52 LL | let xe3 = XE::Empty3; //~ ERROR no variant named `Empty3` found for type
55 | variant not found in `empty_struct::XE`
57 = help: did you mean `XEmpty3`?
59 error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
60 --> $DIR/empty-struct-braces-expr.rs:33:19
62 LL | let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type
65 | variant not found in `empty_struct::XE`
67 = help: did you mean `XEmpty3`?
69 error: aborting due to 8 previous errors
71 Some errors occurred: E0423, E0599.
72 For more information about an error, try `rustc --explain E0423`.