Skip to content

Span for "literal too large" points to the token after the relevant literal #17123

Closed
@huonw

Description

@huonw
fn main() {
    let n = 999999999999999999999999999999999999

    ;
}
<anon>:4:5: 4:6 error: int literal is too large
<anon>:4     ;
             ^

It clearly should be pointing at the 9999...9999.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions