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:
Samuel Ortiz 2023-01-27 10:58:58 +01:00
parent 18890f05f6
commit 706132d409

View File

@ -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);
```