Created
April 25, 2016 02:10
-
-
Save anonymous/52383e834fe67d4d042162cae7b007dd to your computer and use it in GitHub Desktop.
Shared via Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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