2018-08-06 21:15:15 +02:00
|
|
|
error: unsatisfied lifetime constraints
|
2018-08-09 12:03:20 +02:00
|
|
|
--> $DIR/issue-52742.rs:26:9
|
2018-08-06 21:15:15 +02:00
|
|
|
|
|
|
|
|
LL | fn take_bar(&mut self, b: Bar<'_>) {
|
|
|
|
| --------- -- let's call this `'1`
|
|
|
|
| |
|
2018-08-06 23:09:36 +02:00
|
|
|
| has type `&mut Foo<'_, '2>`
|
2018-08-06 21:15:15 +02:00
|
|
|
LL | self.y = b.z
|
2018-09-15 18:30:29 +01:00
|
|
|
| ^^^^^^^^^^^^ assignment requires that `'1` must outlive `'2`
|
2018-08-06 21:15:15 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|