]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-3991.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / issue-3991.rs
index 07a520db20b98bc9ebf802ce703f347368cbea5c..7fb6b4664794ae65cbf2b166c641c7aba91ddf8d 100644 (file)
@@ -8,13 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+use std::vec_ng::Vec;
+
 struct HasNested {
     nest: Vec<Vec<int> > ,
 }
 
 impl HasNested {
     fn method_push_local(&mut self) {
-        self.nest[0].push(0);
+        self.nest.get_mut(0).push(0);
     }
 }