1 error[E0618]: expected function, found struct `Empty2`
2 --> $DIR/empty-struct-unit-expr.rs:15:14
5 | ------------- struct `Empty2` defined here
7 LL | let e2 = Empty2();
10 | call expression requires function
12 help: `Empty2` is a unit struct, and does not take parentheses to be constructed
14 LL - let e2 = Empty2();
18 error[E0618]: expected function, found enum variant `E::Empty4`
19 --> $DIR/empty-struct-unit-expr.rs:16:14
22 | ------ enum variant `E::Empty4` defined here
24 LL | let e4 = E::Empty4();
27 | call expression requires function
29 help: `E::Empty4` is a unit enum variant, and does not take parentheses to be constructed
31 LL - let e4 = E::Empty4();
32 LL + let e4 = E::Empty4;
35 error[E0618]: expected function, found struct `XEmpty2`
36 --> $DIR/empty-struct-unit-expr.rs:18:15
38 LL | let xe2 = XEmpty2();
41 | call expression requires function
43 help: `XEmpty2` is a unit struct, and does not take parentheses to be constructed
45 LL - let xe2 = XEmpty2();
46 LL + let xe2 = XEmpty2;
49 error[E0618]: expected function, found enum variant `XE::XEmpty4`
50 --> $DIR/empty-struct-unit-expr.rs:19:15
52 LL | let xe4 = XE::XEmpty4();
55 | call expression requires function
57 help: `XE::XEmpty4` is a unit enum variant, and does not take parentheses to be constructed
59 LL - let xe4 = XE::XEmpty4();
60 LL + let xe4 = XE::XEmpty4;
63 error: aborting due to 4 previous errors
65 For more information about this error, try `rustc --explain E0618`.