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/libstd/uvtmp.rs | |
| 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/libstd/uvtmp.rs')
| -rw-r--r-- | src/libstd/uvtmp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/uvtmp.rs b/src/libstd/uvtmp.rs index ae08cd5ed5e..36e323e9678 100644 --- a/src/libstd/uvtmp.rs +++ b/src/libstd/uvtmp.rs @@ -120,6 +120,7 @@ fn test_connect() { connected(cd) { close_connection(thread, 0u32); } + _ { fail "test_connect: port isn't connected"; } } join_thread(thread); delete_thread(thread); @@ -156,12 +157,15 @@ fn test_http() { } delete_buf(buf); } + _ { fail "test_http: protocol error"; } } } close_connection(thread, 0u32); } + _ { fail "test_http: expected `wrote`"; } } } + _ { fail "test_http: port not connected"; } } join_thread(thread); delete_thread(thread); |
