Files
simple-rust-tests/single_file_tests/input.rs
2020-04-20 01:19:38 +08:00

13 lines
276 B
Rust

use std::{ io, error::Error, };
fn main() -> Result<(), Box<dyn Error>> {
let mut input = String::new();
println!("Please input: ");
// io::stdout().flush().ok();
io::stdin().read_line(&mut input)?;
println!("You typed: {}", input.trim());
Ok(())
}