We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a14fe commit 7651100Copy full SHA for 7651100
src/test/run-pass/trait-inheritance-num.rs
@@ -18,7 +18,7 @@ use std::cmp::FuzzyEq;
18
19
pub trait NumExt: Num Eq Ord {}
20
21
-pub trait FloatExt: NumExt FuzzyEq {}
+pub trait FloatExt: NumExt FuzzyEq<Self> {}
22
23
fn greater_than_one<T:NumExt>(n: &T) -> bool { *n > from_int(1) }
24
fn greater_than_one_float<T:FloatExt>(n: &T) -> bool { *n > from_int(1) }
src/test/run-pass/trait-inheritance-num2.rs
@@ -94,7 +94,7 @@ pub impl i64: IntegerExt {}
94
pub impl int: IntegerExt {}
95
96
97
98
99
pub impl f32: FloatExt {}
100
pub impl f64: FloatExt {}
0 commit comments