blob: 1f250a888472c55f43c03fcd82c8e56d8b789728 (
plain)
1
2
3
4
5
6
7
8
9
10
|
error[E0623]: lifetime mismatch
--> $DIR/ex2d-push-inference-variable-2.rs:16:33
|
15 | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
| ------------ ------------ these two types are declared with different lifetimes...
16 | let a: &mut Vec<Ref<i32>> = x;
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error
|