diff --git a/library/core/src/io/error/repr_bitpacked.rs b/library/core/src/io/error/repr_bitpacked.rs index 22cb3319240..7b1c2b69020 100644 --- a/library/core/src/io/error/repr_bitpacked.rs +++ b/library/core/src/io/error/repr_bitpacked.rs @@ -313,8 +313,8 @@ static_assert!(@usize_eq: size_of::(), 8); static_assert!((TAG_MASK + 1).is_power_of_two()); // And they must have sufficient alignment. -static_assert!(align_of::() >= TAG_MASK + 1); -static_assert!(align_of::() >= TAG_MASK + 1); +static_assert!(align_of::() > TAG_MASK); +static_assert!(align_of::() > TAG_MASK); static_assert!(@usize_eq: TAG_MASK & TAG_SIMPLE_MESSAGE, TAG_SIMPLE_MESSAGE); static_assert!(@usize_eq: TAG_MASK & TAG_CUSTOM, TAG_CUSTOM);