-
-
Save greister/c98e2bfff1cbe8237e06b8306a636956 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