Fix broken tests

This commit is contained in:
Brendan Zabarauskas 2013-02-08 02:41:23 +11:00
parent 17a14fe0e9
commit 7651100ec1
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
pub trait NumExt: Num Eq Ord {}
pub trait FloatExt: NumExt FuzzyEq {}
pub trait FloatExt: NumExt FuzzyEq<Self> {}
fn greater_than_one<T:NumExt>(n: &T) -> bool { *n > from_int(1) }
fn greater_than_one_float<T:FloatExt>(n: &T) -> bool { *n > from_int(1) }

View File

@ -94,7 +94,7 @@ pub impl i64: IntegerExt {}
pub impl int: IntegerExt {}
pub trait FloatExt: NumExt FuzzyEq {}
pub trait FloatExt: NumExt FuzzyEq<Self> {}
pub impl f32: FloatExt {}
pub impl f64: FloatExt {}