Skip to content

i64::MIN literal out of range warning #16684

Closed
@mahkoh

Description

@mahkoh
let x: i64 = -9223372036854775808;
warning: literal out of range for its type, #[warn(type_overflow)] on by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions