]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/signature-error-reporting-under-verbose.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / fn / signature-error-reporting-under-verbose.stderr
1 error[E0308]: mismatched types
2   --> $DIR/signature-error-reporting-under-verbose.rs:10:15
3    |
4 LL |     needs_ptr(foo);
5    |     --------- ^^^ expected `u32`, found `i32`
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}`
11 note: function defined here
12   --> $DIR/signature-error-reporting-under-verbose.rs:5:4
13    |
14 LL | fn needs_ptr(_: fn(i32, u32)) {}
15    |    ^^^^^^^^^ ---------------
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.