]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-10969.stderr
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-10969.stderr
1 error[E0618]: expected function, found `i32`
2   --> $DIR/issue-10969.rs:2:5
3    |
4 LL | fn func(i: i32) {
5    |         - `i` has type `i32`
6 LL |     i();
7    |     ^--
8    |     |
9    |     call expression requires function
10
11 error[E0618]: expected function, found `i32`
12   --> $DIR/issue-10969.rs:6:5
13    |
14 LL |     let i = 0i32;
15    |         - `i` has type `i32`
16 LL |     i();
17    |     ^--
18    |     |
19    |     call expression requires function
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0618`.