fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
668 B22 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-52533-1.rs:9:18
3   |
4LL |     gimme(|x, y| y)
5   |                  ^ lifetime mismatch
6   |
7   = note: expected type `&Foo<'_, '_, u32>`
8              found type `&Foo<'_, '_, u32>`
9note: the anonymous lifetime #4 defined on the body at 9:11...
10  --> $DIR/issue-52533-1.rs:9:11
11   |
12LL |     gimme(|x, y| y)
13   |           ^^^^^^^^
14note: ...does not necessarily outlive the anonymous lifetime #3 defined on the body at 9:11
15  --> $DIR/issue-52533-1.rs:9:11
16   |
17LL |     gimme(|x, y| y)
18   |           ^^^^^^^^
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.