]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-75777.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-75777.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-75777.rs:11:5
3    |
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`
9
10 error: aborting due to previous error
11