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
419 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-variance-invariant-use-covariant.rs:17:12
3   |
4LL | fn use_<'b>(c: Invariant<'b>) {
5   |         -- lifetime `'b` defined here
6...
7LL |     let _: Invariant<'static> = c;
8   |            ^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'static`
9   |
10   = help: consider replacing `'b` with `'static`
11
12error: aborting due to previous error
13