diff options
Diffstat (limited to 'src/test/ui/class-method-missing.rs')
-rw-r--r-- | src/test/ui/class-method-missing.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/class-method-missing.rs b/src/test/ui/class-method-missing.rs deleted file mode 100644 index 5dc18328f..000000000 --- a/src/test/ui/class-method-missing.rs +++ /dev/null @@ -1,21 +0,0 @@ -trait Animal { - fn eat(&self); -} - -struct Cat { - meows: usize, -} - -impl Animal for Cat { - //~^ ERROR not all trait items implemented, missing: `eat` -} - -fn cat(in_x : usize) -> Cat { - Cat { - meows: in_x - } -} - -fn main() { - let nyan = cat(0); -} |