]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/task-comm-16.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / task-comm-16.rs
index 416aaec40f17bd76f22ae5cafbe0dc120bc3a15c..69ede9b4d0508a9788ca2f56352a12d30d37880d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 use std::cmp;
+use std::vec_ng::Vec;
 
 // Tests of ports and channels on various types
 fn test_rec() {
@@ -29,9 +30,9 @@ fn test_vec() {
     let v0: Vec<int> = vec!(0, 1, 2);
     tx.send(v0);
     let v1 = rx.recv();
-    assert_eq!(v1[0], 0);
-    assert_eq!(v1[1], 1);
-    assert_eq!(v1[2], 2);
+    assert_eq!(*v1.get(0), 0);
+    assert_eq!(*v1.get(1), 1);
+    assert_eq!(*v1.get(2), 2);
 }
 
 fn test_str() {