]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex3-both-anon-regions-3.stderr
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[rust.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-3.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/ex3-both-anon-regions-3.rs:12:13
3    |
4 11 | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
5    |                     ---                 --- these two types are declared with different lifetimes...
6 12 |     z.push((x,y));
7    |             ^ ...but data flows into `z` here
8
9 error[E0623]: lifetime mismatch
10   --> $DIR/ex3-both-anon-regions-3.rs:12:15
11    |
12 11 | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
13    |                         ---                  --- these two types are declared with different lifetimes...
14 12 |     z.push((x,y));
15    |               ^ ...but data flows into `z` here
16
17 error: aborting due to 2 previous errors
18