Skip to content

Commit

Permalink
remove wrong packed struct test
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored Feb 9, 2017
1 parent 1129ce5 commit 1095082
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/test/run-pass/dst-field-align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ fn main() {
// The pointers should be the same
assert_eq!(ptr1, ptr2);

// Test that packed structs are handled correctly
let p : Packed<usize> = Packed { a: 0, b: 13 };
assert_eq!(p.b.get(), 13);
let p : &Packed<Bar> = &p;
assert_eq!(p.b.get(), 13);

// Test that nested DSTs work properly
let f : Foo<Foo<usize>> = Foo { a: 0, b: Foo { a: 1, b: 17 }};
assert_eq!(f.b.b.get(), 17);
Expand Down

0 comments on commit 1095082

Please sign in to comment.