fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
573 B14 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/regions-variance-covariant-use-contravariant.rs:23: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`.