fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
435 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:45
3   |
4LL |     invoke(&x, |a, b| if a > b { a } else { b });
5   |                    --                       ^ returning this value requires that `'1` must outlive `'2`
6   |                    ||
7   |                    |return type of closure is &'2 i32
8   |                    has type `&'1 i32`
9
10error: aborting due to previous error
11