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
531 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-variance-contravariant-use-covariant.rs:23:12
3   |
4LL | fn use_<'short,'long>(c: Contravariant<'short>,
5   |         ------ ----- lifetime `'long` defined here
6   |         |
7   |         lifetime `'short` defined here
8...
9LL |     let _: Contravariant<'long> = c;
10   |            ^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'short` must outlive `'long`
11   |
12   = help: consider adding the following bound: `'short: 'long`
13
14error: aborting due to previous error
15