]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.nll.stderr
New upstream version 1.27.1+dfsg1
[rustc.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-both-are-structs-earlybound-regions.nll.stderr
1 warning: not reporting region error due to nll
2 --> $DIR/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs:18:12
3 |
4 LL | x.push(y); //~ ERROR lifetime mismatch
5 | ^
6
7 error[E0623]: lifetime mismatch
8 --> $DIR/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs:18:5
9 |
10 LL | fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>)
11 | ------- ------- these two types are declared with different lifetimes...
12 ...
13 LL | x.push(y); //~ ERROR lifetime mismatch
14 | ^ ...but data from `y` flows into `x` here
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0623`.