]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error: lifetime may not live long enough |
2 | --> $DIR/ex3-both-anon-regions-both-are-structs-2.rs:7:5 | |
3b2f2976 | 3 | | |
0531ce1d | 4 | LL | fn foo(mut x: Ref, y: Ref) { |
923072b8 FG |
5 | | ----- - has type `Ref<'_, '1>` |
6 | | | | |
7 | | has type `Ref<'_, '2>` | |
532ac7d7 | 8 | LL | x.b = y.b; |
923072b8 | 9 | | ^^^^^^^^^ assignment requires that `'1` must outlive `'2` |
3b2f2976 XL |
10 | |
11 | error: aborting due to previous error | |
12 |