fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
757 B19 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/ex3-both-anon-regions-3.rs:2:13
3   |
4LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
5   |                     ---                 --- these two types are declared with different lifetimes...
6LL |     z.push((x,y));
7   |             ^ ...but data flows into `z` here
8
9error[E0623]: lifetime mismatch
10  --> $DIR/ex3-both-anon-regions-3.rs:2:15
11   |
12LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
13   |                         ---                  --- these two types are declared with different lifetimes...
14LL |     z.push((x,y));
15   |               ^ ...but data flows into `z` here
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0623`.