33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
error[E0631]: type mismatch in function arguments
|
|
--> $DIR/issue-43623.rs:14:5
|
|
|
|
|
LL | / pub fn break_me<T, F>(f: F)
|
|
LL | | where T: for<'b> Trait<'b>,
|
|
LL | | F: for<'b> FnMut(<T as Trait<'b>>::Assoc) {
|
|
LL | | break_me::<Type, fn(_)>;
|
|
| | ^^^^^^^^^^^^^^^^^^^^^^^
|
|
| | |
|
|
| | expected signature of `for<'b> fn(<Type as Trait<'b>>::Assoc) -> _`
|
|
| | found signature of `fn(_) -> _`
|
|
LL | |
|
|
LL | |
|
|
LL | | }
|
|
| |_- required by `break_me`
|
|
|
|
error[E0271]: type mismatch resolving `for<'b> <fn(_) as std::ops::FnOnce<(<Type as Trait<'b>>::Assoc,)>>::Output == ()`
|
|
--> $DIR/issue-43623.rs:14:5
|
|
|
|
|
LL | / pub fn break_me<T, F>(f: F)
|
|
LL | | where T: for<'b> Trait<'b>,
|
|
LL | | F: for<'b> FnMut(<T as Trait<'b>>::Assoc) {
|
|
LL | | break_me::<Type, fn(_)>;
|
|
| | ^^^^^^^^^^^^^^^^^^^^^^^ expected bound lifetime parameter 'b, found concrete lifetime
|
|
LL | |
|
|
LL | |
|
|
LL | | }
|
|
| |_- required by `break_me`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|