Skip to content

Use quotes to improve error messages #1328

Closed
@kud1ing

Description

@kud1ing

Since Haskell's [1 .. 10] is not (yet) implemented in Rust and i read about ranges, i tried

let a = [1 to 10];

this gives the baffling error message

error: expecting ,, found to

A more readable version would be

error: expecting "," but found "to"

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