2022-06-12 09:35:49 +00:00
|
|
|
error: implementation of `Foo` is not general enough
|
|
|
|
--> $DIR/issue-97997.rs:13:5
|
|
|
|
|
|
|
|
|
LL | <fn(&u8) as Foo>::ASSOC;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: `Foo` would have to be implemented for the type `for<'a> fn(&'a u8)`
|
2022-06-12 09:35:49 +00:00
|
|
|
= note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`
|
|
|
|
|
|
|
|
error: implementation of `Foo` is not general enough
|
|
|
|
--> $DIR/issue-97997.rs:13:5
|
|
|
|
|
|
|
|
|
LL | <fn(&u8) as Foo>::ASSOC;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
|
|
|
|
|
2022-09-21 15:57:30 +00:00
|
|
|
= note: `Foo` would have to be implemented for the type `for<'a> fn(&'a u8)`
|
2022-06-12 09:35:49 +00:00
|
|
|
= note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2022-06-12 09:35:49 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|