Fix and enable libstd building

This commit is contained in:
bjorn3
2019-02-11 19:40:07 +01:00
parent c68e76c33b
commit 223611dcb2
4 changed files with 42 additions and 2 deletions

9
example/std_example.rs Normal file
View File

@@ -0,0 +1,9 @@
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();
}