]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/packed-struct-size.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / run-pass / packed-struct-size.rs
index fc081408229d925a9f069ff907d2270a08d4db69..1781f162bc498d003c9e4aea7cc51e7199b60c44 100644 (file)
@@ -25,11 +25,10 @@ struct S5 {
 }
 
 #[packed]
-struct S13_str {
+struct S13 {
     a: i64,
     b: f32,
     c: u8,
-    d: ~str
 }
 
 enum Foo {
@@ -61,7 +60,7 @@ struct S7_Option {
 pub fn main() {
     assert_eq!(mem::size_of::<S4>(), 4);
     assert_eq!(mem::size_of::<S5>(), 5);
-    assert_eq!(mem::size_of::<S13_str>(), 13 + mem::size_of::<~str>());
+    assert_eq!(mem::size_of::<S13>(), 13);
     assert_eq!(mem::size_of::<S3_Foo>(), 3 + mem::size_of::<Foo>());
     assert_eq!(mem::size_of::<S7_Option>(), 7 + mem::size_of::<Option<@f64>>());
 }