Skip to content

Better error message for invalid octal digit #15903

Closed
@jruderman

Description

@jruderman
fn main() {
    0o19;
}

Gives me:

error: expected one of `;`, `}` but found `9`

It would be better to say something like:

error: `9` is not a valid octal digit

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions