fork/rust

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

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

master
614 B19 linesraw
1error[E0308]: mismatched types
2  --> $DIR/signature-error-reporting-under-verbose.rs:10:15
3   |
4LL |     needs_ptr(foo);
5   |     --------- ^^^ expected fn pointer, found fn item
6   |     |
7   |     arguments to this function are incorrect
8   |
9   = note: expected fn pointer `fn(i32, u32)`
10                 found fn item `fn(i32, i32) {foo}`
11note: function defined here
12  --> $DIR/signature-error-reporting-under-verbose.rs:5:4
13   |
14LL | fn needs_ptr(_: fn(i32, u32)) {}
15   |    ^^^^^^^^^ ---------------
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0308`.