]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_enum_variant.stderr
remove all //~ from tests
[rust.git] / tests / ui / large_enum_variant.stderr
1 error: large enum variant found
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 enum variant found
16   --> $DIR/large_enum_variant.rs:17:5
17    |
18 17 |     B([i32; 8000]),
19    |     ^^^^^^^^^^^^^^
20    |
21 help: consider boxing the large fields to reduce the total size of the enum
22    |     B(Box<[i32; 8000]>),
23
24 error: large enum variant found
25   --> $DIR/large_enum_variant.rs:21:5
26    |
27 21 |     D(T, [i32; 8000]),
28    |     ^^^^^^^^^^^^^^^^^
29    |
30 help: consider boxing the large fields to reduce the total size of the enum
31   --> $DIR/large_enum_variant.rs:21:5
32    |
33 21 |     D(T, [i32; 8000]),
34    |     ^^^^^^^^^^^^^^^^^
35
36 error: large enum variant found
37   --> $DIR/large_enum_variant.rs:35:5
38    |
39 35 |     ContainingLargeEnum(LargeEnum),
40    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41    |
42 help: consider boxing the large fields to reduce the total size of the enum
43    |     ContainingLargeEnum(Box<LargeEnum>),
44
45 error: large enum variant found
46   --> $DIR/large_enum_variant.rs:38:5
47    |
48 38 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
49    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50    |
51 help: consider boxing the large fields to reduce the total size of the enum
52   --> $DIR/large_enum_variant.rs:38:5
53    |
54 38 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: large enum variant found
58   --> $DIR/large_enum_variant.rs:42:5
59    |
60 42 |     StructLikeLarge { x: [i32; 8000], y: i32 },
61    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62    |
63 help: consider boxing the large fields to reduce the total size of the enum
64   --> $DIR/large_enum_variant.rs:42:5
65    |
66 42 |     StructLikeLarge { x: [i32; 8000], y: i32 },
67    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
69 error: large enum variant found
70   --> $DIR/large_enum_variant.rs:44:5
71    |
72 44 |       StructLikeLarge2 {
73    |  _____^ starting here...
74 45 | |         x:
75 46 | |         [i32; 8000]
76 47 | |
77 48 | |     },
78    | |_____^ ...ending here
79    |
80 help: consider boxing the large fields to reduce the total size of the enum
81    |         Box<[i32; 8000]>
82
83 error: aborting due to 7 previous errors
84