2022-08-13 00:44:20 -05:00
|
|
|
error[E0308]: arguments to this function are incorrect
|
|
|
|
--> $DIR/two-mismatch-notes.rs:10:5
|
|
|
|
|
|
|
|
|
LL | foo(f, w);
|
|
|
|
| ^^^
|
|
|
|
|
|
2023-01-02 20:00:33 -06:00
|
|
|
note: expected fn pointer, found fn item
|
2022-08-13 00:44:20 -05:00
|
|
|
--> $DIR/two-mismatch-notes.rs:10:9
|
|
|
|
|
|
|
|
|
LL | foo(f, w);
|
|
|
|
| ^
|
|
|
|
= note: expected fn pointer `fn(i32)`
|
|
|
|
found fn item `fn(u32) {f}`
|
2023-01-02 20:00:33 -06:00
|
|
|
note: expected `Wrapper<i32>`, found `Wrapper<isize>`
|
2022-08-13 00:44:20 -05:00
|
|
|
--> $DIR/two-mismatch-notes.rs:10:12
|
|
|
|
|
|
|
|
|
LL | foo(f, w);
|
|
|
|
| ^
|
|
|
|
= note: expected struct `Wrapper<i32>`
|
|
|
|
found struct `Wrapper<isize>`
|
|
|
|
note: function defined here
|
|
|
|
--> $DIR/two-mismatch-notes.rs:4:4
|
|
|
|
|
|
|
|
|
LL | fn foo(_: fn(i32), _: Wrapper<i32>) {}
|
|
|
|
| ^^^ ---------- ---------------
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-08-13 00:44:20 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|