rust/tests/ui/nll/issue-52742.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
390 B
Plaintext
Raw Normal View History

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