]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/class-method-missing.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / class-method-missing.rs
index 2a7e2cea6fa984b6dcb87a7957f6770b6c212742..17cf36b73f6432487d7ae31bf414bc0c511ce51e 100644 (file)
@@ -8,9 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:missing method `eat`
 trait animal {
-  fn eat();
+  fn eat(&self);
 }
 
 struct cat {
@@ -18,6 +17,7 @@ struct cat {
 }
 
 impl animal for cat {
+    //~^ ERROR not all trait items implemented, missing: `eat`
 }
 
 fn cat(in_x : uint) -> cat {