diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-10-29 06:11:22 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-11-08 19:45:49 -0500 |
| commit | 168ac5290e9d4a787e020735f96fa789060a8f76 (patch) | |
| tree | fe927d209d5b0cd6c967151a4679accc3679d965 /src/test/compile-fail/class-method-missing.rs | |
| parent | 9d3f57ef0869805e0dde99cdce9548a587df7893 (diff) | |
| download | rust-168ac5290e9d4a787e020735f96fa789060a8f76.tar.gz rust-168ac5290e9d4a787e020735f96fa789060a8f76.zip | |
Move comparing of impl methods against trait from collect to check.
This code fits better in check because it is checking that the impl matches the interface. This allows us to avoid the awkward constructions that lazilly collect traits and so forth. It also permits us to make use of the results of variance inference.
Diffstat (limited to 'src/test/compile-fail/class-method-missing.rs')
| -rw-r--r-- | src/test/compile-fail/class-method-missing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/class-method-missing.rs b/src/test/compile-fail/class-method-missing.rs index f3c5ab2019d..ca97a899768 100644 --- a/src/test/compile-fail/class-method-missing.rs +++ b/src/test/compile-fail/class-method-missing.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// error-pattern:missing method `eat` trait animal { fn eat(&self); } @@ -18,6 +17,7 @@ struct cat { } impl animal for cat { + //~^ ERROR not all trait methods implemented, missing: `eat` } fn cat(in_x : uint) -> cat { |
