op_ref: Following lint leads to unconditional recursion #7572
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: op_ref
I tried this code:
The lint suggests removing the ampersand in the
Mul<Vec3D> for Vec3D
implementation. Doing that, however, leads to a warning about unconditional recursion, and, naturally, it causes the program to not function correctly.Meta
cargo clippy -V
: clippy 0.1.56 (2d2bc94 2021-08-15)rustc -Vv
:The text was updated successfully, but these errors were encountered: