Can't return impl trait inside a type when using HRTBs #67262
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
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.
This code fails to compile:
The message is:
I think this may be related to #54729 but it isn't quite clear. Certainly the workaround mentioned there does not work in this case.
The text was updated successfully, but these errors were encountered: