blob: 8171ee758b066fc2590b1f1c428959a6c8232d08 [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/ex3-both-anon-regions-both-are-structs-3.rs:16:11
|
LL | x.a = x.b; //~ ERROR lifetime mismatch
| ^^^
error: unsatisfied lifetime constraints
--> $DIR/ex3-both-anon-regions-both-are-structs-3.rs:16:5
|
LL | fn foo(mut x: Ref) {
| ---
| |
| lifetime `'1` appears in this type
| lifetime `'2` appears in this type
LL | x.a = x.b; //~ ERROR lifetime mismatch
| ^^^^^^^^^ requires that `'1` must outlive `'2`
error: aborting due to previous error