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 parentheses
25 LL - let e4 = E::Empty4();
26 LL + let e4 = E::Empty4;
29 error[E0618]: expected function, found `empty_struct::XEmpty2`
30 --> $DIR/empty-struct-unit-expr.rs:18:15
32 LL | let xe2 = XEmpty2();
35 | call expression requires function
37 error[E0618]: expected function, found enum variant `XE::XEmpty4`
38 --> $DIR/empty-struct-unit-expr.rs:19:15
40 LL | let xe4 = XE::XEmpty4();
43 | call expression requires function
45 help: `XE::XEmpty4` is a unit variant, you need to write it without the parentheses
47 LL - let xe4 = XE::XEmpty4();
48 LL + let xe4 = XE::XEmpty4;
51 error: aborting due to 4 previous errors
53 For more information about this error, try `rustc --explain E0618`.