Skip to content

Warn when integer constant does not fit #3084

Closed
@jruderman

Description

@jruderman
fn main()
{
    let x : int = 0x12345678_12345678_12345678;
    assert x != 0x12345678_12345678;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.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