mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
bf66723c0e
Also remove a note that I don't consider to be very useful in context.
30 lines
825 B
Plaintext
30 lines
825 B
Plaintext
error[E0308]: arguments to this function are incorrect
|
|
--> $DIR/two-mismatch-notes.rs:10:5
|
|
|
|
|
LL | foo(f, w);
|
|
| ^^^
|
|
|
|
|
note: expected fn pointer, found fn item
|
|
--> $DIR/two-mismatch-notes.rs:10:9
|
|
|
|
|
LL | foo(f, w);
|
|
| ^
|
|
= note: expected fn pointer `fn(i32)`
|
|
found fn item `fn(u32) {f}`
|
|
note: expected `Wrapper<i32>`, found `Wrapper<isize>`
|
|
--> $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>) {}
|
|
| ^^^ ---------- ---------------
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|