Skip to content

Unexpected keyword use #38

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

Activity

  1. eerz commented on Mar 22, 2025

    @eerz

    why is no one looking into this?, this NEEDS to be fixed ASAP, use<> is literally a feature of rust in the official release now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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