Finishing the iter_mut() line in this code snippet will cause Lapce to crash.
I'm using the latest stable version of Lapce, the latest version of this plugin available in the Lapce plugin registry, and the latest version of rust-analyzer.
fn main() {
let mut numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
// numbers.iter_mut().for_each(|n| { *n = *n * 5; });
// Try typing in .f below, and Lapce will crash
numbers.iter_mut()
numbers.iter().for_each(|n| { print!("{n} "); });
println!("...All done.");
}
Finishing the
iter_mut()line in this code snippet will cause Lapce to crash.I'm using the latest stable version of Lapce, the latest version of this plugin available in the Lapce plugin registry, and the latest version of
rust-analyzer.