fork/rust

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

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

1.40.0
451 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-variance-invariant-use-contravariant.rs:20:12
3   |
4LL | fn use_<'short,'long>(c: Invariant<'long>,
5   |         ------ ----- lifetime `'long` defined here
6   |         |
7   |         lifetime `'short` defined here
8...
9LL |     let _: Invariant<'short> = c;
10   |            ^^^^^^^^^^^^^^^^^ type annotation requires that `'short` must outlive `'long`
11
12error: aborting due to previous error
13