]> git.proxmox.com Git - rustc.git/blame - tests/ui/argument-suggestions/two-mismatch-notes.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / argument-suggestions / two-mismatch-notes.stderr
CommitLineData
f2b60f7d
FG
1error[E0308]: arguments to this function are incorrect
2 --> $DIR/two-mismatch-notes.rs:10:5
3 |
4LL | foo(f, w);
5 | ^^^
6 |
9ffffee4 7note: expected fn pointer, found fn item
f2b60f7d
FG
8 --> $DIR/two-mismatch-notes.rs:10:9
9 |
10LL | foo(f, w);
11 | ^
12 = note: expected fn pointer `fn(i32)`
13 found fn item `fn(u32) {f}`
9ffffee4 14note: expected `Wrapper<i32>`, found `Wrapper<isize>`
f2b60f7d
FG
15 --> $DIR/two-mismatch-notes.rs:10:12
16 |
17LL | foo(f, w);
18 | ^
19 = note: expected struct `Wrapper<i32>`
20 found struct `Wrapper<isize>`
21note: function defined here
22 --> $DIR/two-mismatch-notes.rs:4:4
23 |
24LL | fn foo(_: fn(i32), _: Wrapper<i32>) {}
25 | ^^^ ---------- ---------------
26
27error: aborting due to previous error
28
29For more information about this error, try `rustc --explain E0308`.