Inference failure sometimes results in things being considered functions. #89995
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
I'm surprised it can't infer the type of
d
correctly, considering there are multiple indications it must beRc<str>
(and R-A does so). Maybe it's confused byRc<&str>
being a thing?The final note is straight up perplexing, however: where on earth is it getting the idea that that's a function from? That should probably be squashed.
Edit: even shorter reproduction (playground):
The text was updated successfully, but these errors were encountered: