]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-3.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/ex3-both-anon-regions-3.rs:12:5
3    |
4 LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
5    |                     -                   - let's call the lifetime of this reference `'1`
6    |                     |
7    |                     let's call the lifetime of this reference `'2`
8 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
9    |     ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
10
11 error: unsatisfied lifetime constraints
12   --> $DIR/ex3-both-anon-regions-3.rs:12:5
13    |
14 LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
15    |                         -                    - let's call the lifetime of this reference `'1`
16    |                         |
17    |                         let's call the lifetime of this reference `'2`
18 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
19    |     ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
20
21 error: aborting due to 2 previous errors
22