Specialization should allow for delegation to default trait method implementation #68309
Labels
A-specialization
Area: Trait impl specialization
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
F-associated_type_defaults
`#![feature(associated_type_defaults)]`
F-specialization
`#![feature(specialization)]`
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Given the following trait:
To provide a default specialization on
Trait::test
,test
must be redefined;However this violates the DRY principle. The solution here would be to provide a way to delegate the implementation of
test
to the already existing default implementation found in the trait definition.Proposed syntax to allow for this delegation:
The text was updated successfully, but these errors were encountered: