Type inference around Iterator::collect can result in confusing error messages #91423
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:
The current output is:
I am not sure what the ideal output would be here, but currently it suggests that
collect
wants to build an array of a specific size, which hasn't been specified.The text was updated successfully, but these errors were encountered: