Skip to content

Inconsistency: let mut _ = 0; is rejected by the parser when let mut _a = 0; is not #32501

Closed
@nodakai

Description

@nodakai
fn main() {
    let a = 0;
    let _b = 0;
    let _ = 0;
    let mut b = 0;
    let mut _b = 0;
//    let mut _ = 0; // error: expected identifier, found `_`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions