diff options
Diffstat (limited to 'tests/expectations/tests/class_with_dtor.rs')
-rw-r--r-- | tests/expectations/tests/class_with_dtor.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/expectations/tests/class_with_dtor.rs b/tests/expectations/tests/class_with_dtor.rs index 495889f2..3b15b891 100644 --- a/tests/expectations/tests/class_with_dtor.rs +++ b/tests/expectations/tests/class_with_dtor.rs @@ -8,6 +8,7 @@ #[derive(Debug)] pub struct HandleWithDtor<T> { pub ptr: *mut T, + _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, } impl <T> Default for HandleWithDtor<T> { fn default() -> Self { unsafe { ::std::mem::zeroed() } } |