We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8844e92 + c7f9811 commit 608be0eCopy full SHA for 608be0e
src/test/run-pass/dst-field-align.rs
@@ -25,12 +25,6 @@ struct Baz<T: ?Sized> {
25
a: T
26
}
27
28
-#[repr(packed)]
29
-struct Packed<T: ?Sized> {
30
- a: u8,
31
- b: T
32
-}
33
-
34
struct HasDrop<T: ?Sized> {
35
ptr: Box<usize>,
36
data: T
@@ -55,12 +49,6 @@ fn main() {
55
49
// The pointers should be the same
56
50
assert_eq!(ptr1, ptr2);
57
51
58
- // Test that packed structs are handled correctly
59
- let p : Packed<usize> = Packed { a: 0, b: 13 };
60
- assert_eq!(p.b.get(), 13);
61
- let p : &Packed<Bar> = &p;
62
63
64
52
// Test that nested DSTs work properly
65
53
let f : Foo<Foo<usize>> = Foo { a: 0, b: Foo { a: 1, b: 17 }};
66
54
assert_eq!(f.b.b.get(), 17);
0 commit comments