Skip to content

Less arcane error message for stray backquote #2740

@lkuper

Description

@lkuper

The lexer's error message when I accidentally have a backquote in a Rust program is less than great: "unknown start of token: 96".

gcc's error is "stray ‘`’ in program". Something like that would be much nicer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions