2021-09-24 11:55:14 -05:00
|
|
|
error: `call` trait item in `fn` lang item must be a function
|
2021-06-12 05:48:04 -05:00
|
|
|
--> $DIR/fn-fn_mut-call-ill-formed.rs:10:5
|
|
|
|
|
|
|
|
|
LL | const call: i32 = 42;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-09-24 11:55:14 -05:00
|
|
|
error: first argument of `call` in `fn_mut` lang item must be a reference
|
2021-06-12 05:48:04 -05:00
|
|
|
--> $DIR/fn-fn_mut-call-ill-formed.rs:16:16
|
|
|
|
|
|
|
|
|
LL | fn call(i: i32, j: i32) -> i32 { i + j }
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|