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 <sameo@rivosinc.com>
This commit is contained in:
commit
85dc93b4d3
@ -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…
x
Reference in New Issue
Block a user