Skip to content

Unexpected keyword use #38

@bozdoz

Description

@bozdoz

Input code

fn parse_data(data: &str) -> impl Iterator<Item = Vec<isize>> +  use<'_> {
    data.lines().map(|x| {
        x.split_ascii_whitespace()
            .map(|y| { y.parse::<isize>().expect("I thought this was a number") })
            .collect::<Vec<isize>>()
    })
}

Output code

fn parse_data(data: &str) -> impl Iterator<Item = Vec<isize>> +  use<'_> {
    data.lines().map(|x| {
        x.split_ascii_whitespace()
            .map(|y| { y.parse::<isize>().expect("I thought this was a number") })
            .collect::<Vec<isize>>()
    })
}

Additional context

Says use is unexpected:
Screenshot 2024-12-08 at 9 41 27 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions