1 2 3 4 5 6 7 8 9 10 11 12
#![feature(generic_associated_types)] mod common; use core::marker::PhantomData; use common::method::eq::*; #[test] fn can_serialize_phantom_data() { const LEN: usize = 0; test_serialize_exact::<PhantomData<u64>, LEN>(PhantomData); }