]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0618.stderr
793ec02a86fc684b969e6c3010e082cee68af486
[rustc.git] / src / test / ui / error-codes / E0618.stderr
1 error[E0618]: expected function, found enum variant `X::Entry`
2 --> $DIR/E0618.rs:6:5
3 |
4 LL | Entry,
5 | ----- enum variant `X::Entry` defined here
6 ...
7 LL | X::Entry();
8 | ^^^^^^^^--
9 | |
10 | call expression requires function
11 |
12 help: `X::Entry` is a unit enum variant, and does not take parentheses to be constructed
13 |
14 LL - X::Entry();
15 LL + X::Entry;
16 |
17
18 error[E0618]: expected function, found `i32`
19 --> $DIR/E0618.rs:9:5
20 |
21 LL | let x = 0i32;
22 | - `x` has type `i32`
23 LL | x();
24 | ^--
25 | |
26 | call expression requires function
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0618`.