Borrowck oddness w/ several trait object refs in a struct #14821
Labels
A-type-system
Area: Type system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
For some reason, trying to place two trait objects with the same templated lifetime into a struct confuses borrowck:
This does NOT occur with references to primitive types (tested w/ int). It also does NOT occur if there is only one trait object reference.
This is currently holding up progress on red (my text editor in Rust), so a rapid fix would be very helpful.
Thanks in advance.
The text was updated successfully, but these errors were encountered: