]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60283.stderr
Auto merge of #73562 - poliorcetics:e0432-to-edition2018, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-60283.stderr
1 error[E0631]: type mismatch in function arguments
2   --> $DIR/issue-60283.rs:17:13
3    |
4 LL | pub fn foo<T, F>(_: T, _: F)
5    |        --- required by a bound in this
6 ...
7 LL |     F: for<'a> FnMut(<T as Trait<'a>>::Item),
8    |                ----------------------------- required by this bound in `foo`
9 ...
10 LL |     foo((), drop)
11    |             ^^^^
12    |             |
13    |             expected signature of `fn(<() as Trait<'a>>::Item) -> _`
14    |             found signature of `fn(()) -> _`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0631`.