summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/signature-error-reporting-under-verbose.stderr
blob: 6260fc8dcec528fb0b81e2f78a91341b4b3d6294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: mismatched types
  --> $DIR/signature-error-reporting-under-verbose.rs:10:15
   |
LL |     needs_ptr(foo);
   |     --------- ^^^ expected `u32`, found `i32`
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected fn pointer `fn(i32, u32)`
                 found fn item `fn(i32, i32) {foo}`
note: function defined here
  --> $DIR/signature-error-reporting-under-verbose.rs:5:4
   |
LL | fn needs_ptr(_: fn(i32, u32)) {}
   |    ^^^^^^^^^ ---------------

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.