Fallback to 'has type' error messages rather than 'lifetime appears in type'.
This commit is contained in:
parent
82b48277a2
commit
255ead5faa
2 changed files with 10 additions and 26 deletions
|
|
@ -4,7 +4,7 @@ error: unsatisfied lifetime constraints
|
|||
LL | fn take_bar(&mut self, b: Bar<'_>) {
|
||||
| --------- -- let's call this `'1`
|
||||
| |
|
||||
| lifetime `'2` appears in this type
|
||||
| has type `&mut Foo<'_, '2>`
|
||||
LL | self.y = b.z
|
||||
| ^^^^^^^^^^^^ requires that `'1` must outlive `'2`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue