diff --git a/src/container_of.rs b/src/container_of.rs index bae50dc..926edd3 100644 --- a/src/container_of.rs +++ b/src/container_of.rs @@ -100,14 +100,14 @@ mod tests { #[test] fn non_copy() { - use core::cell::Cell; + use core::cell::RefCell; #[repr(C)] struct Foo { - a: Cell, + a: RefCell, } - let x = Foo { a: Cell::new(0) }; + let x = Foo { a: RefCell::new(0) }; unsafe { assert_eq!(container_of!(&x.a, Foo, a), &x as *const _); }