]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_enum_variant.stderr
Merge pull request #1528 from Manishearth/mut-from-ref
[rust.git] / tests / ui / large_enum_variant.stderr
1 error: large size difference between variants
2   --> $DIR/large_enum_variant.rs:10:5
3    |
4 10 |     B([i32; 8000]),
5    |     ^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/large_enum_variant.rs:6:9
9    |
10 6  | #![deny(large_enum_variant)]
11    |         ^^^^^^^^^^^^^^^^^^
12 help: consider boxing the large fields to reduce the total size of the enum
13    |     B(Box<[i32; 8000]>),
14
15 error: large size difference between variants
16   --> $DIR/large_enum_variant.rs:21:5
17    |
18 21 |     C(T, [i32; 8000]),
19    |     ^^^^^^^^^^^^^^^^^
20    |
21 help: consider boxing the large fields to reduce the total size of the enum
22   --> $DIR/large_enum_variant.rs:21:5
23    |
24 21 |     C(T, [i32; 8000]),
25    |     ^^^^^^^^^^^^^^^^^
26
27 error: large size difference between variants
28   --> $DIR/large_enum_variant.rs:34:5
29    |
30 34 |     ContainingLargeEnum(LargeEnum),
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32    |
33 help: consider boxing the large fields to reduce the total size of the enum
34    |     ContainingLargeEnum(Box<LargeEnum>),
35
36 error: large size difference between variants
37   --> $DIR/large_enum_variant.rs:37:5
38    |
39 37 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
40    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41    |
42 help: consider boxing the large fields to reduce the total size of the enum
43   --> $DIR/large_enum_variant.rs:37:5
44    |
45 37 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
46    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
48 error: large size difference between variants
49   --> $DIR/large_enum_variant.rs:44:5
50    |
51 44 |     StructLikeLarge { x: [i32; 8000], y: i32 },
52    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53    |
54 help: consider boxing the large fields to reduce the total size of the enum
55   --> $DIR/large_enum_variant.rs:44:5
56    |
57 44 |     StructLikeLarge { x: [i32; 8000], y: i32 },
58    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
60 error: large size difference between variants
61   --> $DIR/large_enum_variant.rs:49:5
62    |
63 49 |     StructLikeLarge2 { x: [i32; 8000] },
64    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65    |
66 help: consider boxing the large fields to reduce the total size of the enum
67    |     StructLikeLarge2 { x: Box<[i32; 8000]> },
68
69 error: aborting due to 6 previous errors
70