1 error: large size difference between variants
2 --> $DIR/large_enum_variant.rs:7:5
7 = note: `-D clippy::large-enum-variant` implied by `-D warnings`
8 help: consider boxing the large fields to reduce the total size of the enum
10 LL | B(Box<[i32; 8000]>),
13 error: large size difference between variants
14 --> $DIR/large_enum_variant.rs:31:5
16 LL | ContainingLargeEnum(LargeEnum),
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 help: consider boxing the large fields to reduce the total size of the enum
21 LL | ContainingLargeEnum(Box<LargeEnum>),
24 error: large size difference between variants
25 --> $DIR/large_enum_variant.rs:41:5
27 LL | StructLikeLarge { x: [i32; 8000], y: i32 },
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 help: consider boxing the large fields to reduce the total size of the enum
31 --> $DIR/large_enum_variant.rs:41:5
33 LL | StructLikeLarge { x: [i32; 8000], y: i32 },
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 error: large size difference between variants
37 --> $DIR/large_enum_variant.rs:46:5
39 LL | StructLikeLarge2 { x: [i32; 8000] },
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 help: consider boxing the large fields to reduce the total size of the enum
44 LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
47 error: aborting due to 4 previous errors