]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0618]: expected function, found `Empty2` |
0731742a | 2 | --> $DIR/empty-struct-unit-expr.rs:15:14 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | struct Empty2; |
2c00a5a8 XL |
5 | | -------------- `Empty2` defined here |
6 | ... | |
532ac7d7 | 7 | LL | let e2 = Empty2(); |
a1dfa0c6 XL |
8 | | ^^^^^^-- |
9 | | | | |
10 | | call expression requires function | |
ff7c6d11 | 11 | |
2c00a5a8 | 12 | error[E0618]: expected function, found enum variant `E::Empty4` |
0731742a | 13 | --> $DIR/empty-struct-unit-expr.rs:16:14 |
ff7c6d11 | 14 | | |
0531ce1d | 15 | LL | Empty4 |
2c00a5a8 XL |
16 | | ------ `E::Empty4` defined here |
17 | ... | |
0531ce1d | 18 | LL | let e4 = E::Empty4(); |
a1dfa0c6 XL |
19 | | ^^^^^^^^^-- |
20 | | | | |
21 | | call expression requires function | |
e74abb32 | 22 | | |
3c0e092e | 23 | help: `E::Empty4` is a unit variant, you need to write it without the parentheses |
ff7c6d11 | 24 | | |
3c0e092e XL |
25 | LL - let e4 = E::Empty4(); |
26 | LL + let e4 = E::Empty4; | |
923072b8 | 27 | | |
ff7c6d11 XL |
28 | |
29 | error[E0618]: expected function, found `empty_struct::XEmpty2` | |
0731742a | 30 | --> $DIR/empty-struct-unit-expr.rs:18:15 |
ff7c6d11 | 31 | | |
532ac7d7 | 32 | LL | let xe2 = XEmpty2(); |
a1dfa0c6 XL |
33 | | ^^^^^^^-- |
34 | | | | |
35 | | call expression requires function | |
ff7c6d11 | 36 | |
2c00a5a8 | 37 | error[E0618]: expected function, found enum variant `XE::XEmpty4` |
0731742a | 38 | --> $DIR/empty-struct-unit-expr.rs:19:15 |
ff7c6d11 | 39 | | |
0531ce1d | 40 | LL | let xe4 = XE::XEmpty4(); |
a1dfa0c6 XL |
41 | | ^^^^^^^^^^^-- |
42 | | | | |
43 | | call expression requires function | |
e74abb32 | 44 | | |
3c0e092e | 45 | help: `XE::XEmpty4` is a unit variant, you need to write it without the parentheses |
ff7c6d11 | 46 | | |
3c0e092e XL |
47 | LL - let xe4 = XE::XEmpty4(); |
48 | LL + let xe4 = XE::XEmpty4; | |
923072b8 | 49 | | |
ff7c6d11 XL |
50 | |
51 | error: aborting due to 4 previous errors | |
52 | ||
0531ce1d | 53 | For more information about this error, try `rustc --explain E0618`. |