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