diff options
| author | Samuel Ortiz <sameo@rivosinc.com> | 2023-01-27 10:58:58 +0100 |
|---|---|---|
| committer | Samuel Ortiz <sameo@rivosinc.com> | 2023-01-27 10:59:51 +0100 |
| commit | 706132d409d4a0156e88eeedeca255a19554841f (patch) | |
| tree | a07375a784ae5941decc4c6dbb500a8b7e7b450a /compiler/rustc_error_codes/src | |
| parent | 18890f05f6cea40fd25bb4bb9aa6f7372b69f641 (diff) | |
| download | rust-706132d409d4a0156e88eeedeca255a19554841f.tar.gz rust-706132d409d4a0156e88eeedeca255a19554841f.zip | |
compiler: Fix E0587 explanation
We meant to use 8 as the packed argument. Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0587.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0587.md b/compiler/rustc_error_codes/src/error_codes/E0587.md index ee9031dc379..d7998af85b9 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0587.md +++ b/compiler/rustc_error_codes/src/error_codes/E0587.md @@ -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); ``` |
