//! Test suite to verify whether derive works properly when MemSize is not imported outside of the derive. #[derive(mem_dbg::MemSize, mem_dbg::MemDbg)] struct MyTestStruct(i32); #[test] fn test_mem_size_no_import() { let my_test_struct = MyTestStruct(42); let mem_size = ::mem_size( &my_test_struct, mem_dbg::SizeFlags::default(), ); assert_eq!(mem_size, 4); }