]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetime-errors/ex2c-push-inference-variable.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / lifetime-errors / ex2c-push-inference-variable.stderr
1 error[E0623]: lifetime mismatch
2 --> $DIR/ex2c-push-inference-variable.rs:17:12
3 |
4 15 | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
5 | ------------ ------------ these two types are declared with different lifetimes...
6 16 | let z = Ref { data: y.data };
7 17 | x.push(z);
8 | ^ ...but data from `y` flows into `x` here
9
10 error: aborting due to previous error
11