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