Detect println!("{x}", x)
#105225
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When encountering
println!("{x}", x)
the user either meantprintln!("{x}")
orprintln!("{x}", x=x)
. The later is only likely in <=2018 editions, while the former is what they actually likely wanted. We should suggest it.The text was updated successfully, but these errors were encountered: