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