Skip to content

Instantly share code, notes, and snippets.

@greister
Forked from anonymous/playground.rs
Last active May 8, 2016 03:49
Show Gist options
  • Save greister/c98e2bfff1cbe8237e06b8306a636956 to your computer and use it in GitHub Desktop.
Save greister/c98e2bfff1cbe8237e06b8306a636956 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
use std::fmt::{Debug};
use std::ops::Add;
use std::num::{Zero, One};
trait Numeric : 'static + Debug + Clone + Zero + One { }
}
impl<T> Numeric for T where T : 'static + Debug + Clone + Zero + One { }
fn main() {
println!("Hello, Numeric!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment