An attempt was made to assign a new value to a variable that is currently borrowed. The assignment would invalidate the existing reference, violating Rust's borrowing rules.
E0506
rust An attempt was made to assign a new value to a variable that is currently borrowed. The assignment would invalidate the existing reference, violating Rust's borrowing rules.