fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
445 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/variance-use-covariant-struct-1.rs:10:5
3   |
4LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
5   |        ---- ---- lifetime `'max` defined here
6   |        |
7   |        lifetime `'min` defined here
8...
9LL |     v
10   |     ^ returning this value requires that `'min` must outlive `'max`
11   |
12   = help: consider adding the following bound: `'min: 'max`
13
14error: aborting due to previous error
15