Parameter considered not used in recursive types #105740
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
(playground)
... the current output is:
... and it's a bit misleading, since one could argue that the parameter is actually used - there's
Box<Foo<T>>
, after all! 😇Maybe something like this would work?
(note that generating
_marker: ...
wouldn't work for enums, though)We could also "prove" that the parameter is not actually used by pretty-printing a
Self
-substituted version of the offending type, i.e.:... but I'm not sure if that's worth it 👀
The text was updated successfully, but these errors were encountered: