Confusing error message with str::parse
#70065
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
gives the following error message:
The bound
(): std::str::FromStr
appears seemingly out of thin air. We should explain where the type()
and traitstd::str::FromStr
come from.The
()
appears to be produced by never-type fallback, which was quite surprising to me.The text was updated successfully, but these errors were encountered: