MIR-borrowck: augmented assignment causes duplicate errors #45697
Labels
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
Milestone
Augmented assignments include both a read and a write, so naturally when there's a conflict they cause 2 borrowck errors:
For example, this test (borrowck-assign-to-andmut-in-borrowed-loc)
Triggers a duplicate error:
Not sure what's the best way to solve this, but this issue alone is fairly low priority.
The text was updated successfully, but these errors were encountered: