fork/rust

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

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

1.40.0
497 B13 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