diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-06-27 20:49:39 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-07-26 11:28:04 +0200 |
| commit | c814ee0d2a7b9f67cf2be6a6488d07105606c64c (patch) | |
| tree | 3ae29a282ec3efec49eccd7317ea9931b06ceb78 /example/std_example.rs | |
| parent | 596fdd5a6463d55d8dedd202c41a6392eca2c4c8 (diff) | |
| download | rust-c814ee0d2a7b9f67cf2be6a6488d07105606c64c.tar.gz rust-c814ee0d2a7b9f67cf2be6a6488d07105606c64c.zip | |
[WIP]
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index 98d9ed17b03..ae77616a83d 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -3,32 +3,7 @@ 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(()); - - // Make sure ByValPair values with differently sized components are correctly passed - map(None::<(u8, Box<Instruction>)>); - - println!("{}", 2.3f32.exp()); - println!("{}", 2.3f32.exp2()); - println!("{}", 2.3f32.abs()); - println!("{}", 2.3f32.sqrt()); - println!("{}", 2.3f32.floor()); - println!("{}", 2.3f32.ceil()); - println!("{}", 2.3f32.min(1.0)); - println!("{}", 2.3f32.max(1.0)); + assert_eq!((1u128 + 2) as u16, 3); } #[derive(PartialEq)] |
