Error code E0478
A lifetime bound was not satisfied.
Erroneous code example:
ⓘ
In this example, the 'SnowWhite
lifetime is supposed to outlive the 'kiss
lifetime but the declaration of the Prince
struct doesn't enforce it. To fix
this issue, you need to specify it: