2020-09-07 23:35:24 -05:00
|
|
|
error: lifetime may not live long enough
|
|
|
|
--> $DIR/issue-74497-lifetime-in-opaque.rs:18:21
|
|
|
|
|
|
|
|
|
LL | let _ = foo(|x| bar(x));
|
|
|
|
| -- ^^^^^^ returning this value requires that `'1` must outlive `'2`
|
|
|
|
| ||
|
2021-11-16 18:16:23 -06:00
|
|
|
| |return type of closure `impl Future<Output = ()>` contains a lifetime `'2`
|
2020-09-07 23:35:24 -05:00
|
|
|
| has type `&'1 u8`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-09-07 23:35:24 -05:00
|
|
|
|