1 error[E0618]: expected function, found `Empty2`
2 --> $DIR/empty-struct-unit-expr.rs:25:14
5 | -------------- `Empty2` defined here
7 LL | let e2 = Empty2(); //~ ERROR expected function, found `Empty2`
8 | ^^^^^^^^ not a function
10 error[E0618]: expected function, found enum variant `E::Empty4`
11 --> $DIR/empty-struct-unit-expr.rs:26:14
14 | ------ `E::Empty4` defined here
16 LL | let e4 = E::Empty4();
17 | ^^^^^^^^^^^ not a function
18 help: `E::Empty4` is a unit variant, you need to write it without the parenthesis
20 LL | let e4 = E::Empty4;
23 error[E0618]: expected function, found `empty_struct::XEmpty2`
24 --> $DIR/empty-struct-unit-expr.rs:28:15
26 LL | let xe2 = XEmpty2(); //~ ERROR expected function, found `empty_struct::XEmpty2`
27 | ^^^^^^^^^ not a function
29 error[E0618]: expected function, found enum variant `XE::XEmpty4`
30 --> $DIR/empty-struct-unit-expr.rs:29:15
32 LL | let xe4 = XE::XEmpty4();
33 | ^^^^^^^^^^^^^ not a function
34 help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthesis
36 LL | let xe4 = XE::XEmpty4;
39 error: aborting due to 4 previous errors
41 For more information about this error, try `rustc --explain E0618`.