Skip to content

Commit

Permalink
compiler: Fix E0587 explanation
Browse files Browse the repository at this point in the history
We meant to use 8 as the packed argument.

Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
  • Loading branch information
sameo committed Jan 27, 2023
1 parent 18890f0 commit 706132d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0587.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit 706132d

Please sign in to comment.