Fix E0596: Cannot Assign to Captured Variable in `Fn` Closure Rust intermediate linux macos windows webassembly May 18, 2026 Rust compiler error when attempting to mutate a variable captured by an immutable closure. Caused by using Fn instead of FnMut.