Type inference failure on From::from tries to blame Iterator::collect #78055
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code:
Produces:
At least following the suggestion doesn't result in the error message going any farther off the rails, but it does look quite silly:
Diagnostics pasted from
rustc 1.49.0-nightly (e3051d8c2 2020-10-16)
, but same behavior on stable 1.47.0.The text was updated successfully, but these errors were encountered: