]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex2c-push-inference-variable.stderr
Improve SubSupConflict case with one named, one anonymous lifetime parameter #42701
[rust.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