]> git.lizzy.rs Git - rust.git/blob - tests/ui/lang-items/fn-fn_mut-call-ill-formed.stderr
Rollup merge of #107692 - Swatinem:printsizeyield, r=compiler-errors
[rust.git] / tests / ui / lang-items / fn-fn_mut-call-ill-formed.stderr
1 error: `call` trait item in `fn` lang item must be a function
2   --> $DIR/fn-fn_mut-call-ill-formed.rs:10:5
3    |
4 LL |     const call: i32 = 42;
5    |     ^^^^^^^^^^^^^^^^^^^^^
6
7 error: first argument of `call` in `fn_mut` lang item must be a reference
8   --> $DIR/fn-fn_mut-call-ill-formed.rs:16:16
9    |
10 LL |     fn call(i: i32, j: i32) -> i32 { i + j }
11    |                ^^^
12
13 error: aborting due to 2 previous errors
14