diff --git a/src/local.rs b/src/local.rs index 0672c73d..b9d74ba7 100644 --- a/src/local.rs +++ b/src/local.rs @@ -43,3 +43,10 @@ where unsafe { std::mem::transmute(v) } } } + +#[test] +fn test_size_of_local() { + use std::mem::size_of; + assert_eq!(size_of::>(), size_of::<*const Value>()); + assert_eq!(size_of::>>(), size_of::<*const Value>()); +}