]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0618]: expected function, found `i32` |
0731742a | 2 | --> $DIR/issue-10969.rs:2:5 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | fn func(i: i32) { |
6a06907d | 5 | | - `i` has type `i32` |
532ac7d7 | 6 | LL | i(); |
a1dfa0c6 XL |
7 | | ^-- |
8 | | | | |
9 | | call expression requires function | |
ff7c6d11 XL |
10 | |
11 | error[E0618]: expected function, found `i32` | |
0731742a | 12 | --> $DIR/issue-10969.rs:6:5 |
ff7c6d11 | 13 | | |
0531ce1d | 14 | LL | let i = 0i32; |
6a06907d | 15 | | - `i` has type `i32` |
532ac7d7 | 16 | LL | i(); |
a1dfa0c6 XL |
17 | | ^-- |
18 | | | | |
19 | | call expression requires function | |
ff7c6d11 XL |
20 | |
21 | error: aborting due to 2 previous errors | |
22 | ||
0531ce1d | 23 | For more information about this error, try `rustc --explain E0618`. |