2017-08-06 04:09:43 +05:30
|
|
|
error[E0623]: lifetime mismatch
|
2017-08-23 19:43:05 +05:30
|
|
|
--> $DIR/ex3-both-anon-regions-one-is-struct-3.rs:14:11
|
2017-08-06 04:09:43 +05:30
|
|
|
|
|
|
|
|
13 | fn foo(mut y: Ref, x: &u32) {
|
2017-08-23 18:40:28 +05:30
|
|
|
| --- ---- these two types are declared with different lifetimes...
|
2017-11-20 13:13:27 +01:00
|
|
|
14 | y.b = x; //~ ERROR lifetime mismatch
|
2017-08-23 18:40:28 +05:30
|
|
|
| ^ ...but data from `x` flows into `y` here
|
2017-08-06 04:09:43 +05:30
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|