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