Warn about supertrait bound duplicated in function trait bound (where Self: Supertrait
)
#8229
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
This could be covered under
trait_duplication_in_bounds
.Lint Name
trait_duplication_in_bounds
Reproducer
I tried this code: play
I expected to see this happen:
warning: this trait bound is already specified in the where clause
Instead, this happened:
no warning.
Version
The text was updated successfully, but these errors were encountered: