use { crate::{Arbitrary, Result, Unstructured}, core::marker::{PhantomData, PhantomPinned}, }; impl<'a, A> Arbitrary<'a> for PhantomData where A: ?Sized, { fn arbitrary(_: &mut Unstructured<'a>) -> Result { Ok(PhantomData) } #[inline] fn size_hint(_depth: usize) -> (usize, Option) { (0, Some(0)) } } impl<'a> Arbitrary<'a> for PhantomPinned { fn arbitrary(_: &mut Unstructured<'a>) -> Result { Ok(PhantomPinned) } #[inline] fn size_hint(_depth: usize) -> (usize, Option) { (0, Some(0)) } }