diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-30 21:00:57 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-31 10:08:24 -0800 |
| commit | fba35e1a3c87892823d1f4d436b9f00a7864cf16 (patch) | |
| tree | 1fadaaee99ef266bd2f709fb2aa5577184ab611e /src/test/run-fail | |
| parent | 813a55d89135efb716dd80e96453a091a7cfc631 (diff) | |
| download | rust-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.rs | 9 |
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 { } } } |
