Skip to content

Commit 706132d

Browse files
committed
compiler: Fix E0587 explanation
We meant to use 8 as the packed argument. Signed-off-by: Samuel Ortiz <[email protected]>
1 parent 18890f0 commit 706132d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+1
-1
lines changed

compiler/rustc_error_codes/src/error_codes/E0587.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ You cannot use `packed` and `align` hints on a same type. If you want to pack a
1111
type to a given size, you should provide a size to packed:
1212

1313
```
14-
#[repr(packed)] // ok!
14+
#[repr(packed(8))] // ok!
1515
struct Umbrella(i32);
1616
```

0 commit comments

Comments
 (0)