Skip to content

Commit

Permalink
Rollup merge of #107352 - sameo:topic/E0587, r=JohnTitor
Browse files Browse the repository at this point in the history
compiler: Fix E0587 explanation

We meant to use 8 as the packed argument.

Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
  • Loading branch information
JohnTitor committed Jan 27, 2023
2 parents b247253 + 706132d commit 85dc93b
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 85dc93b

Please sign in to comment.