Skip to content

Commit 7651100

Browse files
committed
Fix broken tests
1 parent 17a14fe commit 7651100

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/run-pass/trait-inheritance-num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::cmp::FuzzyEq;
1818

1919
pub trait NumExt: Num Eq Ord {}
2020

21-
pub trait FloatExt: NumExt FuzzyEq {}
21+
pub trait FloatExt: NumExt FuzzyEq<Self> {}
2222

2323
fn greater_than_one<T:NumExt>(n: &T) -> bool { *n > from_int(1) }
2424
fn greater_than_one_float<T:FloatExt>(n: &T) -> bool { *n > from_int(1) }

src/test/run-pass/trait-inheritance-num2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub impl i64: IntegerExt {}
9494
pub impl int: IntegerExt {}
9595

9696

97-
pub trait FloatExt: NumExt FuzzyEq {}
97+
pub trait FloatExt: NumExt FuzzyEq<Self> {}
9898

9999
pub impl f32: FloatExt {}
100100
pub impl f64: FloatExt {}

0 commit comments

Comments
 (0)