type alias incorrectly flagged as unused when solely used in impl header #58593
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code (play):
Today this emits the following warning diagnostic:
But that type alias is not dead code. It is used in the
impl Clone for S<T> { ... }
, as one can see by trying to recompile the code after commenting out the type alias.The text was updated successfully, but these errors were encountered: