Skip to content

Lexer is too eager to treat - as unary negation #954

@jruderman

Description

@jruderman
fn main() {
    log 3-2;
}

b.rs:2:9: 2:11 error: expected ';' or '}' after expression but found -2

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions