rust/tests/ui/error-codes/E0618.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
727 B
Plaintext
Raw Normal View History

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,
| ----- 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();
| ^^^^^^^^--
| |
| call expression requires function
|
help: `X::Entry` is a unit enum variant, and does not take parentheses to be constructed
2018-02-08 03:35:35 +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;
| - `x` has type `i32`
2018-02-23 00:42:32 +00:00
LL | x();
| ^--
| |
| 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`.