fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
825 B29 linesraw
1error[E0308]: arguments to this function are incorrect
2  --> $DIR/two-mismatch-notes.rs:10:5
3   |
4LL |     foo(f, w);
5   |     ^^^
6   |
7note: expected fn pointer, found fn item
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}`
14note: expected `Wrapper<i32>`, found `Wrapper<isize>`
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`.