Skip to content

Commit 85dc93b

Browse files
authored
Rollup merge of #107352 - sameo:topic/E0587, r=JohnTitor
compiler: Fix E0587 explanation We meant to use 8 as the packed argument. Signed-off-by: Samuel Ortiz <[email protected]>
2 parents b247253 + 706132d commit 85dc93b

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+1
-1
lines changed

compiler/rustc_error_codes/src/error_codes/E0587.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ You cannot use `packed` and `align` hints on a same type. If you want to pack a
1111
type to a given size, you should provide a size to packed:
1212

1313
```
14-
#[repr(packed)] // ok!
14+
#[repr(packed(8))] // ok!
1515
struct Umbrella(i32);
1616
```

0 commit comments

Comments
 (0)