Error code E0499
A variable was borrowed as mutable more than once.
Erroneous code example:
ⓘ
Please note that in Rust, you can either have many immutable references, or one mutable reference. For more details you may want to read the References & Borrowing section of the Book.
Example: