about summary refs log tree commit diff
path: root/src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.base.stderr
blob: 63033b8d16e8b027484de673b59cee762e03efd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0623]: lifetime mismatch
  --> $DIR/ex2c-push-inference-variable.rs:11:12
   |
LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
   |                                   ------------      ------------ these two types are declared with different lifetimes...
LL |     let z = Ref { data: y.data };
LL |     x.push(z);
   |            ^ ...but data from `y` flows into `x` here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0623`.