]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-num2.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / trait-inheritance-num2.rs
index eccafcf5be8840e3417712d3fb24e9d6bb6ae667..1e6e7227a067cc5fc915a973dd9748f69cd33723 100644 (file)
@@ -1,4 +1,3 @@
-// ignore-fast
 
 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
@@ -12,9 +11,8 @@
 
 // A more complex example of numeric extensions
 
-extern mod extra;
-
-use std::cmp::{Eq, Ord};
+use std::cmp::{PartialEq, PartialOrd};
+use std::num::NumCast;
 
 pub trait TypeExt {}
 
@@ -35,7 +33,7 @@ impl TypeExt for f32 {}
 impl TypeExt for f64 {}
 
 
-pub trait NumExt: TypeExt + Eq + Ord + Num + NumCast {}
+pub trait NumExt: TypeExt + PartialEq + PartialOrd + NumCast {}
 
 impl NumExt for u8 {}
 impl NumExt for u16 {}