]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10969.stderr
Rollup merge of #53257 - faern:ip-method-idiomatic-improvement, r=TimNN
[rust.git] / src / test / ui / issues / issue-10969.stderr
1 error[E0618]: expected function, found `i32`
2   --> $DIR/issue-10969.rs:12:5
3    |
4 LL | fn func(i: i32) {
5    |         - `i32` defined here
6 LL |     i(); //~ERROR expected function, found `i32`
7    |     ^^^ not a function
8
9 error[E0618]: expected function, found `i32`
10   --> $DIR/issue-10969.rs:16:5
11    |
12 LL |     let i = 0i32;
13    |         - `i32` defined here
14 LL |     i(); //~ERROR expected function, found `i32`
15    |     ^^^ not a function
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0618`.