False positive: "Cannot borrow immutable local variable as mutable" #2865
Labels
bug
subsystem::code insight
General label for issues related to code understanding: highlighting, completion, annotation, etc.
Environment
Problem description
Mutably borrowing field from immutably bound mutable struct reference is incorrectly reported as an error.
Steps to reproduce
Cannot borrow immutable local variable
y.0
as mutableThe text was updated successfully, but these errors were encountered: