"type annotations needed" in signature with HRTB #70290
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-traits
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground link
produces:
Note that this error occurs when defining the function, not calling it. There is nowhere to add type annotations, so the error makes no sense. This code should presumably be accepted, since both of the bounds are accepted individually.
The text was updated successfully, but these errors were encountered: