Simple example of HRTB bound not resolving correctly #107699
Labels
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected it to compile. However, while D works just fine, C produces the following error:
This fails in all versions currently available in playground.
My original use case was requiring an operator to be implemented on references.
The text was updated successfully, but these errors were encountered: