rust/example/std_example.rs
2019-02-16 14:02:15 +01:00

12 lines
306 B
Rust

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();
std::process::Command::new("true").env("c", "d").spawn();
}