1 error: large size difference between variants
2 --> $DIR/large_enum_variant.rs:7:5
5 | ^^^^^^^^^^^^^^ this variant is 32000 bytes
7 = note: `-D clippy::large-enum-variant` implied by `-D warnings`
8 note: and the second-largest variant is 4 bytes:
9 --> $DIR/large_enum_variant.rs:6:5
13 help: consider boxing the large fields to reduce the total size of the enum
15 LL | B(Box<[i32; 8000]>),
18 error: large size difference between variants
19 --> $DIR/large_enum_variant.rs:31:5
21 LL | ContainingLargeEnum(LargeEnum),
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32004 bytes
24 note: and the second-largest variant is 8 bytes:
25 --> $DIR/large_enum_variant.rs:30:5
27 LL | VariantOk(i32, u32),
29 help: consider boxing the large fields to reduce the total size of the enum
31 LL | ContainingLargeEnum(Box<LargeEnum>),
34 error: large size difference between variants
35 --> $DIR/large_enum_variant.rs:41:5
37 LL | StructLikeLarge { x: [i32; 8000], y: i32 },
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32004 bytes
40 note: and the second-largest variant is 8 bytes:
41 --> $DIR/large_enum_variant.rs:40:5
43 LL | VariantOk(i32, u32),
45 help: consider boxing the large fields to reduce the total size of the enum
46 --> $DIR/large_enum_variant.rs:41:5
48 LL | StructLikeLarge { x: [i32; 8000], y: i32 },
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: large size difference between variants
52 --> $DIR/large_enum_variant.rs:46:5
54 LL | StructLikeLarge2 { x: [i32; 8000] },
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32000 bytes
57 note: and the second-largest variant is 8 bytes:
58 --> $DIR/large_enum_variant.rs:45:5
60 LL | VariantOk(i32, u32),
62 help: consider boxing the large fields to reduce the total size of the enum
64 LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
67 error: aborting due to 4 previous errors