]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex2c-push-inference-variable.nll.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / lifetime-errors / ex2c-push-inference-variable.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/ex2c-push-inference-variable.rs:16:13
3    |
4 LL |     let z = Ref { data: y.data };
5    |             ^^^
6
7 error[E0623]: lifetime mismatch
8   --> $DIR/ex2c-push-inference-variable.rs:17:5
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 z = Ref { data: y.data };
13 LL |     x.push(z); //~ 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`.