op_ref false positive #2042
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
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.
The text was updated successfully, but these errors were encountered: