Detect duplicate trait bounds #90108
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We might look for a way to detect, and possibly remove, repeated trait bounds. Maybe as a lint? Or maybe this would be better in
rustfmt
or clippy?An example from #87880:
I was surprised this is allowed!
Playground example:
The text was updated successfully, but these errors were encountered: