Skip to content

Catch typos like 1_32 instead of 1_i32 #3091

Closed
@scottmcm

Description

@scottmcm

I missed a letter in a very subtle way that still compiled, so it might be a good candidate for linting:

let mut x = 1_32;

when I meant to type

let mut x = 1_i32;

This, of course, made it do something very different from what I wanted...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-correctnessLint: Belongs in the correctness lint groupgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions