diff --git a/single_file_tests/input.rs b/single_file_tests/input.rs new file mode 100644 index 0000000..db927c3 --- /dev/null +++ b/single_file_tests/input.rs @@ -0,0 +1,11 @@ +use std::{ io, error::Error, }; +fn main() -> Result<(), Box> { + let mut input = String::new(); + + println!("Please input: "); + io::stdin().read_line(&mut input)?; + + println!("You typed: {}", input.trim()); + + Ok(()) +}