compiler: Fix E0587 explanation
We meant to use 8 as the packed argument. Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
This commit is contained in:
parent
18890f05f6
commit
706132d409
1 changed files with 1 additions and 1 deletions
|
@ -11,6 +11,6 @@ You cannot use `packed` and `align` hints on a same type. If you want to pack a
|
|||
type to a given size, you should provide a size to packed:
|
||||
|
||||
```
|
||||
#[repr(packed)] // ok!
|
||||
#[repr(packed(8))] // ok!
|
||||
struct Umbrella(i32);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue