"trait bound not satisfied" error with HRTBs when just mentioning a fn. #94207
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-lifetimes
Area: Lifetimes / regions
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc stable 1.58.1
The following code gives a strange error when just mentioning
foo
, without even calling it. As far as I can tell the bounds are well-formed, and the error can't be about passing the wrong type tofoo
because it isn't even getting called. PlaygroundFull error:
The text was updated successfully, but these errors were encountered: