Compiler suggests adding illegal where
bounds
#97576
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.
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).The text was updated successfully, but these errors were encountered: