confusing output when using String::from::utf8
instead of String::from_utf8
#109195
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Desired output
Rationale and extra context
This had me VERY confused as I was certain I would try to get a String here, where does Example come from?? And associated types wut??
The problem is I used
String::from::utf8
which should have beenString::from_utf8
:DMaybe rustc could improve its suggestion somehow in that case?
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: