1 error: lifetime may not live long enough
2 --> $DIR/issue-75777.rs:11:5
4 LL | fn inject<'a, Env: 'a, A: 'a + Send>(v: A) -> Box<dyn FnOnce(&'a Env) -> BoxFuture<'a, A>> {
5 | -- lifetime `'a` defined here
6 LL | let fut: BoxFuture<'a, A> = Box::pin(future::ready(v));
7 LL | Box::new(move |_| fut)
8 | ^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
10 error: aborting due to previous error