1 2 3 4 5 6 7 8 9
use std::error::Error; use input_lib::input; fn main() -> Result<(), Box<dyn Error>> { let name: String = input!("Enter your name: ")?; println!("Hello, {}!", name); Ok(()) }