2019-01-25 12:35:35 -06:00
|
|
|
error: implementation of `Trait` is not general enough
|
2019-01-25 14:23:13 -06:00
|
|
|
--> $DIR/issue-57362-1.rs:20:7
|
2019-01-25 12:35:35 -06:00
|
|
|
|
|
|
|
|
LL | a.f(); //~ ERROR not general enough
|
|
|
|
| ^
|
|
|
|
|
|
2019-01-25 14:23:13 -06:00
|
|
|
= note: `Trait` would have to be implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`
|
2019-01-25 12:35:35 -06:00
|
|
|
= note: but `Trait` is actually implemented for the type `for<'r> fn(&'r u8)`
|
|
|
|
|
2019-01-25 14:23:13 -06:00
|
|
|
error: aborting due to previous error
|
2019-01-25 12:35:35 -06:00
|
|
|
|