You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current error when using io::stdout().flush() without importing std::io::Write looks like this:
src/main.rs:95:22: 95:27 error: no method named `flush` found for type `std::io::stdio::Stdout` in the current scope
src/main.rs:95 io::stdout().flush(); // https://github.com/rust-lang/rust/issues/23818
^~~~~
src/main.rs:95:22: 95:27 help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
src/main.rs:95:22: 95:27 help: candidate #1: use `std::io::Write`
I think the last line should not have the backticks so that we could use the command directly in code.
The text was updated successfully, but these errors were encountered:
suggest: Put the `use` in suggested code inside the quotes
Change import a trait suggestion from:
help: candidate #1: use `std::io::Write`
to
help: candidate #1: `use std::io::Write`
so that the code can be copied directly.
Fixesrust-lang#31864
Current error when using
io::stdout().flush()
without importing std::io::Write looks like this:I think the last line should not have the backticks so that we could use the command directly in code.
The text was updated successfully, but these errors were encountered: