Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 02:10
Show Gist options
  • Save anonymous/52383e834fe67d4d042162cae7b007dd to your computer and use it in GitHub Desktop.
Save anonymous/52383e834fe67d4d042162cae7b007dd 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