rust/example/std_example.rs

10 lines
243 B
Rust
Raw Normal View History

2019-02-11 19:40:07 +01:00
use std::io::Write;
fn main() {
let _ = ::std::iter::repeat('a' as u8).take(10).collect::<Vec<_>>();
let stderr = ::std::io::stderr();
let mut stderr = stderr.lock();
writeln!(stderr, "some {} text", "<unknown>").unwrap();
}