]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/two-mismatch-notes.stderr
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / argument-suggestions / two-mismatch-notes.stderr
1 error[E0308]: arguments to this function are incorrect
2   --> $DIR/two-mismatch-notes.rs:10:5
3    |
4 LL |     foo(f, w);
5    |     ^^^
6    |
7 note: expected `i32`, found `u32`
8   --> $DIR/two-mismatch-notes.rs:10:9
9    |
10 LL |     foo(f, w);
11    |         ^
12    = note: expected fn pointer `fn(i32)`
13                  found fn item `fn(u32) {f}`
14 note: expected `i32`, found `isize`
15   --> $DIR/two-mismatch-notes.rs:10:12
16    |
17 LL |     foo(f, w);
18    |            ^
19    = note: expected struct `Wrapper<i32>`
20               found struct `Wrapper<isize>`
21 note: function defined here
22   --> $DIR/two-mismatch-notes.rs:4:4
23    |
24 LL | fn foo(_: fn(i32), _: Wrapper<i32>) {}
25    |    ^^^ ----------  ---------------
26
27 error: aborting due to previous error
28
29 For more information about this error, try `rustc --explain E0308`.