Skip to content

Out-of-range float literals are not checked by type-limits lint #10934

Closed
@huonw

Description

@huonw

e.g.

fn main() { println!("{} {}", 1e310, 1e-360 == 0.0); } // prints `inf true`.

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