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