Associated type constraints and higher ranked trait bounds require impossible type annotations #87893
Labels
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code (Playground):
I expected to see this happen: The code compiles successfully because there are no additional type annotations are needed.
Instead, an invalid suggestion is produced:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: