2017-12-10 22:47:55 +03:00
|
|
|
error[E0618]: expected function, found `i32`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-10969.rs:2:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn func(i: i32) {
|
2018-01-15 05:18:06 -08:00
|
|
|
| - `i32` defined here
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | i();
|
2018-11-10 20:46:05 -08:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error[E0618]: expected function, found `i32`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-10969.rs:6:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let i = 0i32;
|
2018-01-15 05:18:06 -08:00
|
|
|
| - `i32` defined here
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | i();
|
2018-11-10 20:46:05 -08:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0618`.
|