]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0618.stderr
Auto merge of #47956 - retep998:is-nibbles, r=BurntSushi
[rust.git] / src / test / ui / error-codes / E0618.stderr
1 error[E0618]: expected function, found enum variant `X::Entry`
2   --> $DIR/E0618.rs:16:5
3    |
4 12 |     Entry,
5    |     ----- `X::Entry` defined here
6 ...
7 16 |     X::Entry();
8    |     ^^^^^^^^^^ not a function
9 help: `X::Entry` is a unit variant, you need to write it without the parenthesis
10    |
11 16 |     X::Entry;
12    |     ^^^^^^^^
13
14 error[E0618]: expected function, found `i32`
15   --> $DIR/E0618.rs:19:5
16    |
17 18 |     let x = 0i32;
18    |         - `i32` defined here
19 19 |     x();
20    |     ^^^ not a function
21
22 error: aborting due to 2 previous errors
23