Skip to content

parser rejects "fail []" #675

Closed
Closed
@jruderman

Description

@jruderman
fn main() {
    fail [];
}

/Users/jruderman/Desktop/a.rs:2:9:2:10: error: expected ';' or '}' after expression but found [

The parser should accept this, leaving it for the type-checker to complain about. Found through AST fuzzing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions