LLVM assertion failure with with borrowed pointer in struct #5884
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This program
yields
This cropped up after the new self lifetimes as I tried to change field
b
from@Foo
to&'self Foo
. If the owned pointer fromBar
is removed (even just the sigil), the assertion still trips.One solution I found is:
The text was updated successfully, but these errors were encountered: