]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/vec-late-init.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / vec-late-init.rs
index 7239ae8a1d680e70c69f2188d6941cfbdc7b4571..815235ef980b7f087150b663ab795de9f29e5064 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
+use std::vec_ng::Vec;
 
 pub fn main() {
     let mut later: Vec<int> ;
     if true { later = vec!(1); } else { later = vec!(2); }
-    println!("{}", later[0]);
+    println!("{}", *later.get(0));
 }