🛠️ specialization permits empty impls when parent has no default items #48444
Labels
A-specialization
Area: Trait impl specialization
A-traits
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-specialization
`#![feature(specialization)]`
requires-nightly
This issue requires a nightly compiler in some way.
S-types-deferred
Status: Identified as a valid potential future enhancement that is not currently being worked on
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
It is potentially somewhat surprising that the following impls are accepted:
The original example was unearthed by @eddyb and @varkor as part of a PR.
To be clear, I don't see this as a soundness problem per se. Just a question of what we think it ought to do.
cc @aturon
The text was updated successfully, but these errors were encountered: