echo.rs 217 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 use std::io; fn main() { loop { let mut input = String::new(); io::stdin().read_line(&mut input); if input == "exit\n" { return; } print!("{}", input); } }