Returning this value requires that `'1` must outlive `'2`

I've found two related questions, and it seems that it's neither necessary to define a custom trait nor to use boxing, provided one can use the nightly #![feature(type_alias_impl_trait)].

1 Like