Skip to content

Improve error message for unexpected EOF #643

@jruderman

Description

@jruderman
fn x() { }
fn y() {
fn z() { }

Result:

a.rs:3:9:3:10: error: unexpected token: <eof>

Expected: something like of "missing } after function body which begins on line 2".

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