3 #![warn(variant_size_differences)]
6 // Note that the following test works because all fields of the enum variants are of the same size.
7 // If this test is modified and the reordering logic in librustc/ty/layout.rs kicks in, it fails.
11 enum Enum2 { A, B, C }
13 enum Enum3 { D(i64), E, F }
15 enum Enum4 { H(i64), I(i64), J }
18 L(i64, i64, i64, i64), //~ WARNING three times larger
29 #[allow(variant_size_differences)]
31 R(i64, i64, i64, i64),