summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-52742.stderr
blob: a7973829656b28f92f522c6a6cb165a102f67426 (plain)
1
2
3
4
5
6
7
8
9
10
11
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