Skip to content

Commit bd6fba2

Browse files
committed
Fixed Failing job checks
1 parent 6aaf7ed commit bd6fba2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/ui/large_enum_variant_no_std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn panic(_: &PanicInfo) -> ! {
1010
}
1111

1212
enum Myenum {
13-
//~ ERROR: large size difference between variants
13+
//~^ ERROR: large size difference between variants
1414
Small(u8),
1515
Large([u8; 1024]),
1616
}

tests/ui/large_enum_variant_no_std.stderr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ error: large size difference between variants
22
--> tests/ui/large_enum_variant_no_std.rs:12:1
33
|
44
LL | / enum Myenum {
5+
LL | |
56
LL | | 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`

0 commit comments

Comments
 (0)