]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/expr-match-fail.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / expr-match-fail.rs
index 71306a43f23b6156ba60f15ccfb8fae9edfd2a9d..46ba63e452d5c898ac7db18ba0d7274c267f6315 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+use std::vec_ng::Vec;
+
 fn test_simple() {
     let r = match true { true => { true } false => { fail!() } };
     assert_eq!(r, true);
@@ -15,7 +17,7 @@ fn test_simple() {
 
 fn test_box() {
     let r = match true { true => { vec!(10) } false => { fail!() } };
-    assert_eq!(r[0], 10);
+    assert_eq!(*r.get(0), 10);
 }
 
 pub fn main() { test_simple(); test_box(); }