2021-06-07 14:25:19 -05:00
|
|
|
error: implementation of `Foo` is not general enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/issue-46989.rs:38:5
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
|
|
|
LL | assert_foo::<fn(&i32)>();
|
2021-06-07 14:25:19 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
|
|
|
|
|
2022-09-21 10:57:30 -05:00
|
|
|
= note: `Foo` would have to be implemented for the type `for<'a> fn(&'a i32)`
|
2021-06-07 14:25:19 -05:00
|
|
|
= note: ...but `Foo` is actually implemented for the type `fn(&'0 i32)`, for some specific lifetime `'0`
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|