diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs index 9976ffe86..79a6ca6d0 100644 --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -376,7 +376,7 @@ pub struct Local { // https://github.com/crossbeam-rs/crossbeam/issues/551 #[test] fn local_size() { - assert_eq!(2040, core::mem::size_of::()); + assert!(core::mem::size_of::() <= 2040, "An allocation of `Local` should be <= 2048 bytes."); } impl Local {