]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | error[E0618]: expected function, found `Empty2` |
2 | --> $DIR/empty-struct-unit-expr.rs:25:14 | |
3 | | | |
ff7c6d11 | 4 | 18 | struct Empty2; |
2c00a5a8 XL |
5 | | -------------- `Empty2` defined here |
6 | ... | |
7 | 25 | let e2 = Empty2(); //~ ERROR expected function, found `Empty2` | |
8 | | ^^^^^^^^ not a function | |
ff7c6d11 | 9 | |
2c00a5a8 | 10 | error[E0618]: expected function, found enum variant `E::Empty4` |
ff7c6d11 XL |
11 | --> $DIR/empty-struct-unit-expr.rs:26:14 |
12 | | | |
2c00a5a8 XL |
13 | 21 | Empty4 |
14 | | ------ `E::Empty4` defined here | |
15 | ... | |
ff7c6d11 | 16 | 26 | let e4 = E::Empty4(); |
2c00a5a8 XL |
17 | | ^^^^^^^^^^^ not a function |
18 | help: `E::Empty4` is a unit variant, you need to write it without the parenthesis | |
ff7c6d11 | 19 | | |
2c00a5a8 XL |
20 | 26 | let e4 = E::Empty4; |
21 | | ^^^^^^^^^ | |
ff7c6d11 XL |
22 | |
23 | error[E0618]: expected function, found `empty_struct::XEmpty2` | |
24 | --> $DIR/empty-struct-unit-expr.rs:28:15 | |
25 | | | |
26 | 28 | let xe2 = XEmpty2(); //~ ERROR expected function, found `empty_struct::XEmpty2` | |
2c00a5a8 | 27 | | ^^^^^^^^^ not a function |
ff7c6d11 | 28 | |
2c00a5a8 | 29 | error[E0618]: expected function, found enum variant `XE::XEmpty4` |
ff7c6d11 XL |
30 | --> $DIR/empty-struct-unit-expr.rs:29:15 |
31 | | | |
32 | 29 | let xe4 = XE::XEmpty4(); | |
2c00a5a8 XL |
33 | | ^^^^^^^^^^^^^ not a function |
34 | help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthesis | |
ff7c6d11 | 35 | | |
2c00a5a8 XL |
36 | 29 | let xe4 = XE::XEmpty4; |
37 | | ^^^^^^^^^^^ | |
ff7c6d11 XL |
38 | |
39 | error: aborting due to 4 previous errors | |
40 |