1 error[E0618]: expected function, found `Empty2`
2 --> $DIR/empty-struct-unit-expr.rs:15:14
5 | -------------- `Empty2` defined here
7 LL | let e2 = Empty2();
10 | call expression requires function
12 error[E0618]: expected function, found enum variant `E::Empty4`
13 --> $DIR/empty-struct-unit-expr.rs:16:14
16 | ------ `E::Empty4` defined here
18 LL | let e4 = E::Empty4();
21 | call expression requires function
23 help: `E::Empty4` is a unit variant, you need to write it without the parenthesis
25 LL | let e4 = E::Empty4;
28 error[E0618]: expected function, found `empty_struct::XEmpty2`
29 --> $DIR/empty-struct-unit-expr.rs:18:15
31 LL | let xe2 = XEmpty2();
34 | call expression requires function
36 error[E0618]: expected function, found enum variant `XE::XEmpty4`
37 --> $DIR/empty-struct-unit-expr.rs:19:15
39 LL | let xe4 = XE::XEmpty4();
42 | call expression requires function
44 help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthesis
46 LL | let xe4 = XE::XEmpty4;
49 error: aborting due to 4 previous errors
51 For more information about this error, try `rustc --explain E0618`.