2022-12-06 17:55:26 -06:00
|
|
|
error[E0631]: type mismatch in closure arguments
|
|
|
|
--> $DIR/issue-25439.rs:8:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fix(|_, x| x);
|
2022-12-06 17:55:26 -06:00
|
|
|
| ^^^ ------ found signature defined here
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2022-12-06 17:55:26 -06:00
|
|
|
= note: expected closure signature `for<'a> fn(Helper<'a, [closure@$DIR/issue-25439.rs:8:9: 8:15]>, i32) -> _`
|
|
|
|
found closure signature `fn(_, _) -> _`
|
|
|
|
note: required by a bound in `fix`
|
|
|
|
--> $DIR/issue-25439.rs:3:33
|
|
|
|
|
|
|
|
|
LL | fn fix<F>(f: F) -> i32 where F: Fn(Helper<F>, i32) -> i32 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `fix`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2022-12-06 17:55:26 -06:00
|
|
|
For more information about this error, try `rustc --explain E0631`.
|