fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
424 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-74497-lifetime-in-opaque.rs:18:21
3   |
4LL |     let _ = foo(|x| bar(x));
5   |                  -- ^^^^^^ returning this value requires that `'1` must outlive `'2`
6   |                  ||
7   |                  |return type of closure `impl Future<Output = ()>` contains a lifetime `'2`
8   |                  has type `&'1 u8`
9
10error: aborting due to previous error
11