Warn when a higher-ranked trait bound variable is unused #82998
Labels
A-lifetimes
Area: Lifetimes / regions
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.
This use of HRTB currently compiles without any warnings:
It would be helpful for the compiler to warn that the
'a
lifetime is unnecessary.@rustbot label A-lint A-lifetimes C-feature-request
The text was updated successfully, but these errors were encountered: