2018-02-07 21:35:35 -06:00
|
|
|
error[E0618]: expected function, found enum variant `X::Entry`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0618.rs:6:5
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Entry,
|
2022-07-16 17:15:41 -05:00
|
|
|
| ----- enum variant `X::Entry` defined here
|
2018-02-07 21:35:35 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | X::Entry();
|
2018-11-10 22:46:05 -06:00
|
|
|
| ^^^^^^^^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2022-07-16 17:15:41 -05:00
|
|
|
help: `X::Entry` is a unit enum variant, and does not take parentheses to be constructed
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2021-11-16 14:35:26 -06:00
|
|
|
LL - X::Entry();
|
|
|
|
LL + X::Entry;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
|
|
error[E0618]: expected function, found `i32`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0618.rs:9:5
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let x = 0i32;
|
2021-02-17 08:50:59 -06:00
|
|
|
| - `x` has type `i32`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x();
|
2018-11-10 22:46:05 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0618`.
|