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