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
@ -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:
|
type to a given size, you should provide a size to packed:
|
||||||
|
|
||||||
```
|
```
|
||||||
#[repr(packed)] // ok!
|
#[repr(packed(8))] // ok!
|
||||||
struct Umbrella(i32);
|
struct Umbrella(i32);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user