impl Trait with < as Trait>::Type syntax does not work in return position #59023
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
A-traits
Area: Trait system
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Using the
as
syntax does not work as a generic to an impl Trait in return position.Error
As a parameter it does work:
This issue looks related, but specifically calls out type equality constraints. #53984
The text was updated successfully, but these errors were encountered: