fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
334 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-ret-borrowed-1.rs:10:14
3   |
4LL |     with(|o| o)
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