Error code E0261
An undeclared lifetime was used.
Erroneous code example:
ⓘ
These can be fixed by declaring lifetime parameters:
Impl blocks declare lifetime parameters separately. You need to add lifetime parameters to an impl block if you're implementing a type that has a lifetime parameter of its own. For example:
ⓘ
This is fixed by declaring the impl block like this: