18 lines
652 B
Plaintext
18 lines
652 B
Plaintext
|
warning: not reporting region error due to -Znll
|
||
|
--> $DIR/ex2c-push-inference-variable.rs:16:13
|
||
|
|
|
||
|
LL | let z = Ref { data: y.data };
|
||
|
| ^^^
|
||
|
|
||
|
error[E0623]: lifetime mismatch
|
||
|
--> $DIR/ex2c-push-inference-variable.rs:16:9
|
||
|
|
|
||
|
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 };
|
||
|
| ^ ...but data from `y` flows into `x` here
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0623`.
|