]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_enum_variant.stderr
5d659611533a5c42450e753a88317af8828f7eeb
[rust.git] / tests / ui / large_enum_variant.stderr
1 error: large size difference between variants
2   --> $DIR/large_enum_variant.rs:7:5
3    |
4 LL |     B([i32; 8000]),
5    |     ^^^^^^^^^^^^^^
6    |
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
9    |
10 LL |     B(Box<[i32; 8000]>),
11    |       ^^^^^^^^^^^^^^^^
12
13 error: large size difference between variants
14   --> $DIR/large_enum_variant.rs:31:5
15    |
16 LL |     ContainingLargeEnum(LargeEnum),
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18    |
19 help: consider boxing the large fields to reduce the total size of the enum
20    |
21 LL |     ContainingLargeEnum(Box<LargeEnum>),
22    |                         ^^^^^^^^^^^^^^
23
24 error: large size difference between variants
25   --> $DIR/large_enum_variant.rs:41:5
26    |
27 LL |     StructLikeLarge { x: [i32; 8000], y: i32 },
28    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29    |
30 help: consider boxing the large fields to reduce the total size of the enum
31   --> $DIR/large_enum_variant.rs:41:5
32    |
33 LL |     StructLikeLarge { x: [i32; 8000], y: i32 },
34    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
36 error: large size difference between variants
37   --> $DIR/large_enum_variant.rs:46:5
38    |
39 LL |     StructLikeLarge2 { x: [i32; 8000] },
40    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41    |
42 help: consider boxing the large fields to reduce the total size of the enum
43    |
44 LL |     StructLikeLarge2 { x: Box<[i32; 8000]> },
45    |                           ^^^^^^^^^^^^^^^^
46
47 error: aborting due to 4 previous errors
48