about summary refs log tree commit diff
path: root/src/test/run-fail
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-19 01:03:57 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-19 01:04:59 -0800
commit5b028f527f2c487a5f4196fdf3cfc7a2acef74ff (patch)
tree5888a216866e8d94d3211dbf39bb943d64d47017 /src/test/run-fail
parent9df03068897602d4377a35c0ae3cf2467666a039 (diff)
downloadrust-5b028f527f2c487a5f4196fdf3cfc7a2acef74ff.tar.gz
rust-5b028f527f2c487a5f4196fdf3cfc7a2acef74ff.zip
Remove support for the '.' after a nullary tag in a pattern
(Commit also includes lots of changes to remove '.'s that a git
merge messed up, or else it was monkeys.)
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/alt-bot-fail.rs2
-rw-r--r--src/test/run-fail/non-exhaustive-match.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-fail/alt-bot-fail.rs b/src/test/run-fail/alt-bot-fail.rs
index 8b39450be86..dcca16590a5 100644
--- a/src/test/run-fail/alt-bot-fail.rs
+++ b/src/test/run-fail/alt-bot-fail.rs
@@ -4,6 +4,6 @@ fn foo(s: str) { }
 
 fn main() {
     let i =
-        alt some::<int>(3) { none::<int>. { fail } some::<int>(_) { fail } };
+        alt some::<int>(3) { none::<int> { fail } some::<int>(_) { fail } };
     foo(i);
 }
diff --git a/src/test/run-fail/non-exhaustive-match.rs b/src/test/run-fail/non-exhaustive-match.rs
index 4afd83c1b97..829477ce71a 100644
--- a/src/test/run-fail/non-exhaustive-match.rs
+++ b/src/test/run-fail/non-exhaustive-match.rs
@@ -6,4 +6,4 @@
 // error-pattern:non-exhaustive match failure
 tag t { a; b; }
 
-fn main() { let x = a; alt x { b. { } } }
+fn main() { let x = a; alt x { b { } } }