mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 17:45:31 +00:00
Fix and enable libstd building
This commit is contained in:
9
example/std_example.rs
Normal file
9
example/std_example.rs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user