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) -> ! {
10
10
}
11
11
12
12
enum Myenum {
13
- //~ ERROR: large size difference between variants
13
+ //~^ ERROR: large size difference between variants
14
14
Small ( u8 ) ,
15
15
Large ( [ u8 ; 1024 ] ) ,
16
16
}
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ error: large size difference between variants
2
2
--> tests/ui/large_enum_variant_no_std.rs:12:1
3
3
|
4
4
LL | / enum Myenum {
5
+ LL | |
5
6
LL | | Small(u8),
6
7
| | --------- 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 | | }
10
11
| |_^ the entire enum is at least 1025 bytes
11
12
|
12
13
= note: `-D clippy::large-enum-variant` implied by `-D warnings`
You can’t perform that action at this time.
0 commit comments