fork/rust

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

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

1.42.0
633 B15 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/variance-cell-is-invariant.rs:14:25
3   |
4LL | fn use_<'short,'long>(c: Foo<'short>,
5   |                          ----------- these two types are declared with different lifetimes...
6LL |                       s: &'short isize,
7LL |                       l: &'long isize,
8   |                          ------------
9LL |                       _where:Option<&'short &'long ()>) {
10LL |     let _: Foo<'long> = c;
11   |                         ^ ...but data from `c` flows into `l` here
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0623`.