fork/rust

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

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

1.41.0
381 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-52533-1.rs:9:18
3   |
4LL |     gimme(|x, y| y)
5   |            -  -  ^ closure was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
6   |            |  |
7   |            |  has type `&Foo<'_, '1, u32>`
8   |            has type `&Foo<'_, '2, u32>`
9
10error: aborting due to previous error
11