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