2018-02-07 19:35:35 -08:00
|
|
|
error[E0618]: expected function, found enum variant `X::Entry`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0618.rs:6:5
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | Entry,
|
2022-07-16 22:15:41 +00:00
|
|
|
| ----- enum variant `X::Entry` defined here
|
2018-02-07 19:35:35 -08:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | X::Entry();
|
2018-11-10 20:46:05 -08:00
|
|
|
| ^^^^^^^^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2019-10-23 22:20:58 -07: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-07 19:35:35 -08:00
|
|
|
|
|
2021-11-16 20:35:26 +00:00
|
|
|
LL - X::Entry();
|
|
|
|
LL + X::Entry;
|
2022-06-08 20:34:57 +03:00
|
|
|
|
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
|
|
error[E0618]: expected function, found `i32`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0618.rs:9:5
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let x = 0i32;
|
2021-02-17 20:20:59 +05:30
|
|
|
| - `x` has type `i32`
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | x();
|
2018-11-10 20:46:05 -08:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0618`.
|