]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-self-in-supertype.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / trait-inheritance-self-in-supertype.rs
index c7e206cb474b86d81d0dbf3f66484972faf09b26..e353be16b45e515e011b7862609277e895a90692 100644 (file)
@@ -17,7 +17,7 @@ pub trait FuzzyEq<Eps> {
     fn fuzzy_eq_eps(&self, other: &Self, epsilon: &Eps) -> bool;
 }
 
-trait Float: FuzzyEq<Self> {
+trait Float: Sized+FuzzyEq<Self> {
     fn two_pi() -> Self;
 }