Closed as not planned
Description
Lifetimes bounds added to returned impl Trait
does not seem to be considered by the compiler.
I would expect the above example to compile: wrap
is defined to return a 'static
Future, so why is the compiler saying that it should have the same lifetime as &self
?
The issue does not manifest when returning a concrete type like MapErr
or BoxFuture<'static, Reply>
,