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-30 21:00:57 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-31 10:08:24 -0800
commitfba35e1a3c87892823d1f4d436b9f00a7864cf16 (patch)
tree1fadaaee99ef266bd2f709fb2aa5577184ab611e /src/test/run-fail
parent813a55d89135efb716dd80e96453a091a7cfc631 (diff)
downloadrust-fba35e1a3c87892823d1f4d436b9f00a7864cf16.tar.gz
rust-fba35e1a3c87892823d1f4d436b9f00a7864cf16.zip
Require alts to be exhaustive
middle::check_alt does the work. Lots of changes to add default cases
into alts that were previously inexhaustive.
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/non-exhaustive-match.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/run-fail/non-exhaustive-match.rs b/src/test/run-fail/non-exhaustive-match.rs
deleted file mode 100644
index c6127d178c8..00000000000
--- a/src/test/run-fail/non-exhaustive-match.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-// -*- rust -*-
-
-// error-pattern:non-exhaustive match failure
-enum t { a, b, }
-
-fn main() { let x = a; alt x { b { } } }