]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0618.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.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 parentheses
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`.