]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-self.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / trait-inheritance-self.rs
index 7d975da4a2491b204648192c6ab5f1f76b27bf1f..a025be5d651bc1f414b27504cc74c734c8722734 100644 (file)
@@ -12,7 +12,7 @@ trait Foo<T> {
     fn f(&self, x: &T);
 }
 
-trait Bar : Foo<Self> {
+trait Bar : Sized + Foo<Self> {
     fn g(&self);
 }