]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/size-and-align.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / size-and-align.rs
index 5731b8de52942e6d83b2e0b26e4d7c839d683675..f43011df4c257affa3966a65f3a5038def87802d 100644 (file)
@@ -13,7 +13,7 @@
 
 enum clam<T> { a(T, int), b, }
 
-fn uhoh<T>(v: ~[clam<T>]) {
+fn uhoh<T>(v: Vec<clam<T>> ) {
     match v[1] {
       a::<T>(ref _t, ref u) => {
           println!("incorrect");
@@ -25,6 +25,6 @@ fn uhoh<T>(v: ~[clam<T>]) {
 }
 
 pub fn main() {
-    let v: ~[clam<int>] = ~[b::<int>, b::<int>, a::<int>(42, 17)];
+    let v: Vec<clam<int>> = vec!(b::<int>, b::<int>, a::<int>(42, 17));
     uhoh::<int>(v);
 }