]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_enum_variant.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[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:18:5
15    |
16 LL |     C(T, [i32; 8000]),
17    |     ^^^^^^^^^^^^^^^^^
18    |
19 help: consider boxing the large fields to reduce the total size of the enum
20   --> $DIR/large_enum_variant.rs:18:5
21    |
22 LL |     C(T, [i32; 8000]),
23    |     ^^^^^^^^^^^^^^^^^
24
25 error: large size difference between variants
26   --> $DIR/large_enum_variant.rs:31:5
27    |
28 LL |     ContainingLargeEnum(LargeEnum),
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 help: consider boxing the large fields to reduce the total size of the enum
31    |
32 LL |     ContainingLargeEnum(Box<LargeEnum>),
33    |                         ^^^^^^^^^^^^^^
34
35 error: large size difference between variants
36   --> $DIR/large_enum_variant.rs:34:5
37    |
38 LL |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40    |
41 help: consider boxing the large fields to reduce the total size of the enum
42   --> $DIR/large_enum_variant.rs:34:5
43    |
44 LL |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
45    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
47 error: large size difference between variants
48   --> $DIR/large_enum_variant.rs:41:5
49    |
50 LL |     StructLikeLarge { x: [i32; 8000], y: i32 },
51    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52    |
53 help: consider boxing the large fields to reduce the total size of the enum
54   --> $DIR/large_enum_variant.rs:41:5
55    |
56 LL |     StructLikeLarge { x: [i32; 8000], y: i32 },
57    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
59 error: large size difference between variants
60   --> $DIR/large_enum_variant.rs:46:5
61    |
62 LL |     StructLikeLarge2 { x: [i32; 8000] },
63    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 help: consider boxing the large fields to reduce the total size of the enum
65    |
66 LL |     StructLikeLarge2 { x: Box<[i32; 8000]> },
67    |                           ^^^^^^^^^^^^^^^^
68
69 error: aborting due to 6 previous errors
70