about summary refs log tree commit diff
path: root/src/test/ui/lifetime-errors/ex2d-push-inference-variable-2.stderr
blob: 673aee256b4f53ea96f67758bbd3c44429e3eec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0623]: lifetime mismatch
  --> $DIR/ex2d-push-inference-variable-2.rs:16:33
   |
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 a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
   |                                 ^ ...but data from `y` flows into `x` here

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0623"