Skip to content

Warn about useless matches #3664

@grahamc

Description

@grahamc

Clippy should warn about this useless match:

fn main()
{
    let a = 1;
    let b = 2;
    let c = 3;
    
    match (a, b, c) {
        (x, y, z) => {
            // this is a useless match
        }
    }
}

cc @oli-obk

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-complexityLint: Belongs in the complexity lint groupL-styleLint: Belongs in the style lint groupL-suggestionLint: Improving, adding or fixing lint suggestionsgood 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