12 lines
242 B
Rust
12 lines
242 B
Rust
use std::{ io, error::Error, };
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
let mut input = String::new();
|
|
|
|
println!("Please input: ");
|
|
io::stdin().read_line(&mut input)?;
|
|
|
|
println!("You typed: {}", input.trim());
|
|
|
|
Ok(())
|
|
}
|