]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/unique-autoderef-index.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / unique-autoderef-index.rs
index 1c026bf91d11b0fbf973b15696f31e0a8f4784c7..87ce07c596ce5f9332a5652113656405a8772f06 100644 (file)
@@ -8,7 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+use std::vec_ng::Vec;
+
 pub fn main() {
     let i = ~vec!(100);
-    assert_eq!(i[0], 100);
+    assert_eq!(*i.get(0), 100);
 }