File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn panic(_: &PanicInfo) -> ! {
1010}
1111
1212enum Myenum {
13- //~ ERROR: large size difference between variants
13+ //~^ ERROR: large size difference between variants
1414 Small ( u8 ) ,
1515 Large ( [ u8 ; 1024 ] ) ,
1616}
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ error: large size difference between variants
22 --> tests/ui/large_enum_variant_no_std.rs:12:1
33 |
44LL | / enum Myenum {
5+ LL | |
56LL | | Small(u8),
67 | | --------- the second-largest variant contains at least 1 bytes
7- LL | | Large([u8;1024]),
8- | | ---------------- the largest variant contains at least 1024 bytes
9- LL | | }
8+ LL | | Large([u8; 1024]),
9+ | | ----------------- the largest variant contains at least 1024 bytes
10+ LL | | }
1011 | |_^ the entire enum is at least 1025 bytes
1112 |
1213 = note: `-D clippy::large-enum-variant` implied by `-D warnings`
You can’t perform that action at this time.
0 commit comments