Fix E0388: Cannot Assign to Immutable Borrowed Content
Rust error E0388 occurs when attempting to assign a value through a borrow that does not grant mutable access to the target field or content.
2 articles
Rust error E0388 occurs when attempting to assign a value through a borrow that does not grant mutable access to the target field or content.
Rust compiler error when attempting to mutate a variable captured by an immutable closure. Caused by using Fn instead of FnMut.