fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
400 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-infer-call-3.rs:8:24
3   |
4LL |     let z = with(|y| { select(x, y) });
5   |                   --   ^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
6   |                   ||
7   |                   |return type of closure is &'2 isize
8   |                   has type `&'1 isize`
9
10error: aborting due to previous error
11