Skip to content

This causes Lapce to crash #30

Description

@Talon1024

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.");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions