]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-subst2.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / trait-inheritance-subst2.rs
index 6a3639954350fb44743d43d0f2820f444e5be2f9..7d3ebc19e8f833663a12b99db5f71726080e943d 100644 (file)
@@ -17,7 +17,7 @@ trait Add<RHS,Result>: Panda<RHS> {
     fn add(&self, rhs: &RHS) -> Result;
 }
 
-trait MyNum : Add<Self,Self> { }
+trait MyNum : Sized + Add<Self,Self> { }
 
 struct MyInt { val: isize }