Unused generic parameter #4610
Labels
A-lint
Area: New lints
L-complexity
Lint: Belongs in the complexity lint group
L-unnecessary
Lint: Warn about unnecessary code
I ended up with a weird case of unused generic parameter that was not detected by the compilation (like it usually is) and that clippy didn't saw either. I'm not sure why but I've been able to craft a Minimal Example (or at least, I was not able to remove any part without the compiler to yell at me).
In the above example, the function
my_func
has a generic parameterH
that is never used and neither the compiler nor clippy is mentioning it.Looking for other related issues, I've found #877 but the bug has been fixed. And like in #877, it might be a use case for
rustc
directly, I'm not sure.The text was updated successfully, but these errors were encountered: