2019-04-07 10:07:36 -05:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/issue-52742.rs:12:9
|
2019-04-07 10:07:36 -05:00
|
|
|
|
|
|
|
|
LL | fn take_bar(&mut self, b: Bar<'_>) {
|
2022-05-29 05:24:18 -05:00
|
|
|
| --------- - has type `Bar<'1>`
|
2019-04-07 10:07:36 -05:00
|
|
|
| |
|
|
|
|
| has type `&mut Foo<'_, '2>`
|
|
|
|
LL | self.y = b.z
|
|
|
|
| ^^^^^^^^^^^^ assignment requires that `'1` must outlive `'2`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-04-07 10:07:36 -05:00
|
|
|
|