Skip to content

add a lint check for mut variables that aren't mutated #4627

Closed
@thestinger

Description

@thestinger

This could throw a warning:

fn foo() {
    let mut x = 5;
    io::println(x.to_str())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions