Skip to content

tuples containing #[must_use] types should be #[must_use] #61061

Closed
@cramertj

Description

@cramertj
fn main() {
    Ok::<(), ()>(());
}

gives a warning, but

fn main() {
    (Ok::<(), ()>(()),);
}

does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions