Add compiler hint for stdin().get_line() -> stdin().read_line() #131091
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.
Code
I am learning Rust, and I keep typing
std::io::stdin().get_line()
instead ofstd::io::stdin().read_line()
and the compiler doesn't give any useful hints.Current output
Desired output
Rationale and extra context
I keep accidentally making this mistake because I am a beginner.
Other cases
No response
Rust Version
rustc version 1.81.0 via https://play.rust-lang.org/?version=stable&mode=debug&edition=2021
I am not able to access my laptop right now, and it uses 1.80.1 anyway.
Anything else?
No response
The text was updated successfully, but these errors were encountered: