]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0618.stderr
New upstream version 1.52.0~beta.3+dfsg1
[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 | ----- `X::Entry` defined here
6 ...
7 LL | X::Entry();
8 | ^^^^^^^^--
9 | |
10 | call expression requires function
11 |
12 help: `X::Entry` is a unit variant, you need to write it without the parenthesis
13 |
14 LL | X::Entry;
15 | ^^^^^^^^
16
17 error[E0618]: expected function, found `i32`
18 --> $DIR/E0618.rs:9:5
19 |
20 LL | let x = 0i32;
21 | - `x` has type `i32`
22 LL | x();
23 | ^--
24 | |
25 | call expression requires function
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0618`.