Skip to content

op_ref false positive #2042

Open
Open
@euclio

Description

@euclio

With the following code: https://play.rust-lang.org/?gist=1aa5789d7082019e91bac7b093304ad5&version=stable

Clippy suggests removing the reference, but without the reference the Rust compiler complains that type annotations are needed.

I would expect the lint to not fire in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions