2024-01-11 12:02:50 +00:00
|
|
|
error: implementation of `FnMut` is not general enough
|
2023-09-19 20:19:06 +00:00
|
|
|
--> $DIR/higher-ranked-lifetime-error.rs:12:5
|
|
|
|
|
|
|
|
|
LL | assert_all::<_, &String>(id);
|
2024-01-11 12:02:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnMut` is not general enough
|
2023-09-19 20:19:06 +00:00
|
|
|
|
|
2024-01-11 12:02:50 +00:00
|
|
|
= note: `for<'a> fn(&'a String) -> &'a String {id}` must implement `FnMut<(&String,)>`
|
|
|
|
= note: ...but it actually implements `FnMut<(&'0 String,)>`, for some specific lifetime `'0`
|
2023-09-19 20:19:06 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-09-19 20:19:06 +00:00
|
|
|
|