fork/rust

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

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

1.40.0
850 B24 linesraw
1error: lifetime may not live long enough
2  --> $DIR/variance-invariant-arg-trait-match.rs:10:5
3   |
4LL | fn get_min_from_max<'min, 'max, G>()
5   |                     ----  ---- lifetime `'max` defined here
6   |                     |
7   |                     lifetime `'min` defined here
8...
9LL |     impls_get::<G,&'min i32>()
10   |     ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
11
12error: lifetime may not live long enough
13  --> $DIR/variance-invariant-arg-trait-match.rs:16:5
14   |
15LL | fn get_max_from_min<'min, 'max, G>()
16   |                     ----  ---- lifetime `'max` defined here
17   |                     |
18   |                     lifetime `'min` defined here
19...
20LL |     impls_get::<G,&'max i32>()
21   |     ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
22
23error: aborting due to 2 previous errors
24