about summary refs log tree commit diff
path: root/src/test/run-pass/unique-send-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/unique-send-2.rs')
-rw-r--r--src/test/run-pass/unique-send-2.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/unique-send-2.rs b/src/test/run-pass/unique-send-2.rs
index e66c8730898..f88c458f2ed 100644
--- a/src/test/run-pass/unique-send-2.rs
+++ b/src/test/run-pass/unique-send-2.rs
@@ -9,10 +9,10 @@
 // except according to those terms.
 
 use std::task;
-use std::comm::{channel, Sender};
+use std::sync::mpsc::{channel, Sender};
 
 fn child(tx: &Sender<Box<uint>>, i: uint) {
-    tx.send(box i);
+    tx.send(box i).unwrap();
 }
 
 pub fn main() {
@@ -29,7 +29,7 @@ pub fn main() {
 
     let mut actual = 0u;
     for _ in range(0u, n) {
-        let j = rx.recv();
+        let j = rx.recv().unwrap();
         actual += *j;
     }