diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-07-07 18:08:38 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-07-26 11:29:35 +0200 |
| commit | 641a210ff688d8101688b32650d09c270d381b02 (patch) | |
| tree | 9977bfab9ba403a9224c0c923d9db1179477707f /example/std_example.rs | |
| parent | 3080c73f50a286a7a6199bf88d7bad7570c2e646 (diff) | |
| download | rust-641a210ff688d8101688b32650d09c270d381b02.tar.gz rust-641a210ff688d8101688b32650d09c270d381b02.zip | |
Implement most 128bit binops
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index ae77616a83d..c0ec0bb5b73 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -3,23 +3,5 @@ use std::io::Write; fn main() { - assert_eq!((1u128 + 2) as u16, 3); -} - -#[derive(PartialEq)] -enum LoopState { - Continue(()), - Break(()) -} - -pub enum Instruction { - Increment, - Loop, -} - -fn map(a: Option<(u8, Box<Instruction>)>) -> Option<Box<Instruction>> { - match a { - None => None, - Some((_, instr)) => Some(instr), - } + assert_eq!(1u128 + 2, 3); } |
