diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-11-02 10:43:15 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-11-02 10:43:28 -0700 |
| commit | caf68038dd5bc129a3a9b6972a64c0752b73a004 (patch) | |
| tree | 79bb542ea73b55a6576d43468e96c86393efb431 | |
| parent | ad025102582b8c5b7d78b96683cf9e9e94dc5272 (diff) | |
| download | rust-caf68038dd5bc129a3a9b6972a64c0752b73a004.tar.gz rust-caf68038dd5bc129a3a9b6972a64c0752b73a004.zip | |
test: Fix error messages in compile-fail tests. rs=rustbot
| -rw-r--r-- | src/test/compile-fail/enum-in-scope.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-2370-2.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-2370.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-2509-a.rs | 5 | ||||
| -rw-r--r-- | src/test/compile-fail/pat-shadow-in-nested-binding.rs | 2 |
5 files changed, 7 insertions, 12 deletions
diff --git a/src/test/compile-fail/enum-in-scope.rs b/src/test/compile-fail/enum-in-scope.rs index e1d86936d02..4f3d4424c03 100644 --- a/src/test/compile-fail/enum-in-scope.rs +++ b/src/test/compile-fail/enum-in-scope.rs @@ -1,5 +1,5 @@ enum hello = int; fn main() { - let hello = 0; //~ERROR declaration of `hello` shadows an enum that's in -} \ No newline at end of file + let hello = 0; //~ERROR declaration of `hello` shadows +} diff --git a/src/test/compile-fail/issue-2370-2.rs b/src/test/compile-fail/issue-2370-2.rs index 273483415fc..98dc177dbc3 100644 --- a/src/test/compile-fail/issue-2370-2.rs +++ b/src/test/compile-fail/issue-2370-2.rs @@ -1,4 +1,4 @@ -// error-pattern: type cat cannot be dereferenced +// error-pattern: can only dereference structs struct cat { x: () } @@ -6,4 +6,4 @@ struct cat { fn main() { let kitty : cat = cat { x: () }; log (error, *kitty); -} \ No newline at end of file +} diff --git a/src/test/compile-fail/issue-2370.rs b/src/test/compile-fail/issue-2370.rs index dd8de95fdaa..1a67b4e657b 100644 --- a/src/test/compile-fail/issue-2370.rs +++ b/src/test/compile-fail/issue-2370.rs @@ -1,4 +1,4 @@ -// error-pattern: type cat cannot be dereferenced +// error-pattern: can only dereference structs struct cat { foo: () } @@ -6,4 +6,4 @@ struct cat { fn main() { let nyan = cat { foo: () }; log (error, *nyan); -} \ No newline at end of file +} diff --git a/src/test/compile-fail/issue-2509-a.rs b/src/test/compile-fail/issue-2509-a.rs deleted file mode 100644 index a24e3bdee36..00000000000 --- a/src/test/compile-fail/issue-2509-a.rs +++ /dev/null @@ -1,5 +0,0 @@ -struct c { //~ ERROR a struct must have at least one field -} - -fn main() { -} diff --git a/src/test/compile-fail/pat-shadow-in-nested-binding.rs b/src/test/compile-fail/pat-shadow-in-nested-binding.rs index c4ba5131879..df00e3b2655 100644 --- a/src/test/compile-fail/pat-shadow-in-nested-binding.rs +++ b/src/test/compile-fail/pat-shadow-in-nested-binding.rs @@ -1,5 +1,5 @@ enum foo = uint; fn main() { - let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows an enum that's in scope + let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows } |
