]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/size-and-align.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / size-and-align.rs
index f43011df4c257affa3966a65f3a5038def87802d..9b06e1758863f11655f539f58954a04c5fa7686b 100644 (file)
@@ -8,13 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-
+use std::vec_ng::Vec;
 
 enum clam<T> { a(T, int), b, }
 
 fn uhoh<T>(v: Vec<clam<T>> ) {
-    match v[1] {
+    match *v.get(1) {
       a::<T>(ref _t, ref u) => {
           println!("incorrect");
           println!("{:?}", u);