Skip to content

Commit 12eeffd

Browse files
committed
place the error checks on the correct lines
1 parent 75f605c commit 12eeffd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/compile-fail/large_enum_variant.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ enum AnotherLargeEnum {
4141
StructLikeLittle { x: i32, y: i32 },
4242
StructLikeLarge { x: [i32; 8000], y: i32 }, //~ ERROR large enum variant found
4343
//~^ HELP consider boxing the large fields to reduce the total size of the enum
44-
StructLikeLarge2 {
44+
StructLikeLarge2 { //~ ERROR large enum variant found
4545
x:
4646
[i32; 8000] //~ SUGGESTION Box<[i32; 8000]>
47+
//~^ HELP consider boxing the large fields to reduce the total size of the enum
4748
},
48-
//~^ ERROR large enum variant found
49-
//~^ HELP consider boxing the large fields to reduce the total size of the enum
5049
}
5150

5251
fn main() {

0 commit comments

Comments
 (0)