-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Compiler suggests adding illegal where bounds #97576
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi! 👋
Given the following code:
(https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=248f8c6fd510d2abf74cb29e90ad8588)
The current output (stable / beta / nightly) is:
The issue is that I've used
bar.into()instead ofbar.to_string()-- and while the compiler suggesting to replace.into()with.to_string()would be pretty cool, at the very least I think it shouldn't propose addingwhere String: From<impl ToString>(which is both illegal & pretty pointless).