Warn for type parameter defaults on impl
blocks
#31543
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
If I understand correctly, type parameter defaults have no effect in the block
impl<T = default> Foo<T> { }
.Just like in PR #30724, this should have a warning and then an error.
Example (playground)
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: