]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetime-errors/ex2d-push-inference-variable-2.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / lifetime-errors / ex2d-push-inference-variable-2.stderr
CommitLineData
abe05a73 1error[E0623]: lifetime mismatch
32a655c1
SL
2 --> $DIR/ex2d-push-inference-variable-2.rs:16:33
3 |
0531ce1d 4LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
abe05a73 5 | ------------ ------------ these two types are declared with different lifetimes...
0531ce1d 6LL | let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
abe05a73 7 | ^ ...but data from `y` flows into `x` here
32a655c1 8
041b39d2 9error: aborting due to previous error
32a655c1 10
0531ce1d 11For more information about this error, try `rustc --explain E0623`.