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