impl-trait type alias is usable in impl blocks #65384
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As requested in #53345 (comment), here's a follow up.
The following code below implements the trait
MyTrait
for an aliasBar
, which is an alias toMyTrait
. It doesnt really make sense to implement a trait...for that same trait.type_alias_impl_trait doesn't mention anything about this, however the previous existential_type notes:
Im not sure this should be allowed.
cc @Aaron1011 @nikomatsakis @Centril
The text was updated successfully, but these errors were encountered: