]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | error[E0631]: type mismatch in function arguments |
f035d41b | 2 | --> $DIR/issue-60283.rs:17:13 |
532ac7d7 | 3 | | |
e1599b0c | 4 | LL | pub fn foo<T, F>(_: T, _: F) |
ba9703b0 | 5 | | --- required by a bound in this |
f035d41b XL |
6 | ... |
7 | LL | F: for<'a> FnMut(<T as Trait<'a>>::Item), | |
8 | | ----------------------------- required by this bound in `foo` | |
e1599b0c | 9 | ... |
532ac7d7 | 10 | LL | foo((), drop) |
e1599b0c XL |
11 | | ^^^^ |
12 | | | | |
f035d41b XL |
13 | | expected signature of `fn(<() as Trait<'a>>::Item) -> _` |
14 | | found signature of `fn(()) -> _` | |
532ac7d7 | 15 | |
f035d41b | 16 | error: aborting due to previous error |
532ac7d7 | 17 | |
f035d41b | 18 | For more information about this error, try `rustc --explain E0631`. |