diff --git a/src/test/ui/layout/unsafe-cell-hides-niche.rs b/src/test/ui/layout/unsafe-cell-hides-niche.rs
index 9e80a708f2f..7f159887ba1 100644
--- a/src/test/ui/layout/unsafe-cell-hides-niche.rs
+++ b/src/test/ui/layout/unsafe-cell-hides-niche.rs
@@ -30,7 +30,10 @@ macro_rules! assert_size_eq {
($ty:ty, $size:expr, $optioned_size:expr) => {
assert_size_eq!($ty, $size);
assert_size_eq!(Option<$ty>, $optioned_size);
- const _: () = assert!($size == $optioned_size || size_of::<$ty>() < size_of::