Skip to content

Unhelpful error message with missing semicolon #3036

Closed
@jruderman

Description

@jruderman
fn main()
{
    let x = 3
}

gives me

/Users/jruderman/Desktop/unhelpful_parse_error_missing_semi.rs:4:0: 4:1 error: expected `` but found `}`
/Users/jruderman/Desktop/unhelpful_parse_error_missing_semi.rs:4 }
                                                                 ^

It expected the empty string?

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions