We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f605c commit 12eeffdCopy full SHA for 12eeffd
tests/compile-fail/large_enum_variant.rs
@@ -41,12 +41,11 @@ enum AnotherLargeEnum {
41
StructLikeLittle { x: i32, y: i32 },
42
StructLikeLarge { x: [i32; 8000], y: i32 }, //~ ERROR large enum variant found
43
//~^ HELP consider boxing the large fields to reduce the total size of the enum
44
- StructLikeLarge2 {
+ StructLikeLarge2 { //~ ERROR large enum variant found
45
x:
46
[i32; 8000] //~ SUGGESTION Box<[i32; 8000]>
47
+ //~^ HELP consider boxing the large fields to reduce the total size of the enum
48
},
- //~^ ERROR large enum variant found
49
- //~^ HELP consider boxing the large fields to reduce the total size of the enum
50
}
51
52
fn main() {
0 commit comments