clippy::use_self seems to trigger in some odd places #10127
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
Summary
I have a simple enum which for some reason is triggering
clippy::use_self
. Following it's suggestion results in code that is (to no surprise) uncompilable as it suggests replacing the enum name with Self.Lint Name
clippy::use_self
Reproducer
I tried this code:
I saw this happen:
I have no idea if I am causing this or if it is an actual bug as my codebase is quite large, but I am pretty sure this is a bug.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: