diff options
Diffstat (limited to 'tests/ui/nll/issue-52742.stderr')
-rw-r--r-- | tests/ui/nll/issue-52742.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-52742.stderr b/tests/ui/nll/issue-52742.stderr new file mode 100644 index 000000000..a79738296 --- /dev/null +++ b/tests/ui/nll/issue-52742.stderr @@ -0,0 +1,12 @@ +error: lifetime may not live long enough + --> $DIR/issue-52742.rs:12:9 + | +LL | fn take_bar(&mut self, b: Bar<'_>) { + | --------- - 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 previous error + |