]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex3-both-anon-regions-3.nll.stderr
Rollup merge of #53110 - Xanewok:save-analysis-remap-path, r=nrc
[rust.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-3.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/ex3-both-anon-regions-3.rs:12:13
3    |
4 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
5    |             ^
6
7 warning: not reporting region error due to nll
8   --> $DIR/ex3-both-anon-regions-3.rs:12:15
9    |
10 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
11    |               ^
12
13 error: unsatisfied lifetime constraints
14   --> $DIR/ex3-both-anon-regions-3.rs:12:5
15    |
16 LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
17    |                     -                   - let's call the lifetime of this reference `'1`
18    |                     |
19    |                     let's call the lifetime of this reference `'2`
20 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
21    |     ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
22
23 error: unsatisfied lifetime constraints
24   --> $DIR/ex3-both-anon-regions-3.rs:12:5
25    |
26 LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
27    |                         -                    - let's call the lifetime of this reference `'1`
28    |                         |
29    |                         let's call the lifetime of this reference `'2`
30 LL |     z.push((x,y)); //~ ERROR lifetime mismatch
31    |     ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
32
33 error: aborting due to 2 previous errors
34