bab8113954
Fixes #349
27 lines
597 B
Rust
27 lines
597 B
Rust
#![feature(core_intrinsics)]
|
|
|
|
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();
|
|
|
|
let _ = std::process::Command::new("true").env("c", "d").spawn();
|
|
|
|
println!("cargo:rustc-link-lib=z");
|
|
|
|
static ONCE: std::sync::Once = std::sync::ONCE_INIT;
|
|
ONCE.call_once(|| {});
|
|
|
|
LoopState::Continue(()) == LoopState::Break(());
|
|
}
|
|
|
|
#[derive(PartialEq)]
|
|
enum LoopState {
|
|
Continue(()),
|
|
Break(())
|
|
}
|