Skip to content

FN in boxed_local lint #4642

Open
Open
@flip1995

Description

@flip1995

This FN was introduced by the rustup #4628. To fix this major changes to the lint are probably necessary (#4628 (comment)).

A test for this FN already exists here:

fn closure_borrow(x: Box<A>) {
let _ = || {
borrow(&x);
};
}

Originally posted by @flip1995 in #4628

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesI-false-negativeIssue: The lint should have been triggered on code, but wasn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions