fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
565 B14 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/regions-infer-covariance-due-to-decl.rs:22:32
3   |
4LL | fn use_<'short,'long>(c: Covariant<'long>,
5   |                          ----------------
6LL |                       s: &'short isize,
7   |                          ------------- these two types are declared with different lifetimes...
8...
9LL |     let _: Covariant<'short> = c;
10   |                                ^ ...but data from `s` flows into `c` here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0623`.