fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
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