blob: 515ba55cf6f5b8f7bbbe951396d0fa39846ca8e9 [file] [log] [blame]
error: unsatisfied lifetime constraints
--> $DIR/issue-52742.rs:26:9
|
LL | fn take_bar(&mut self, b: Bar<'_>) {
| --------- -- let's call this `'1`
| |
| has type `&mut Foo<'_, '2>`
LL | self.y = b.z
| ^^^^^^^^^^^^ requires that `'1` must outlive `'2`
error: aborting due to previous error