]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/packed-struct-generic-size.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / packed-struct-generic-size.rs
index 0b6ab579e6b73299fdc5acfe5b37c55d353aeaff..b297fc7e13f77b232905f5d37942374673acd9d3 100644 (file)
@@ -22,6 +22,6 @@ pub fn main() {
 
     assert_eq!(mem::size_of::<S<u64, u16>>(), 11);
 
-    assert_eq!(mem::size_of::<S<~str, ~[int]>>(),
-               1 + mem::size_of::<~str>() + mem::size_of::<~[int]>());
+    assert_eq!(mem::size_of::<S<~str, Vec<int> >>(),
+               1 + mem::size_of::<~str>() + mem::size_of::<Vec<int> >());
 }