1 2 3 4 5 6 7 8 9 10 11 12 13
#![feature(generic_associated_types)] mod common; use std::rc::Rc; use common::method::eq::*; #[cfg(feature = "std")] #[test] fn can_serialize_rc() { const LEN: usize = 8; test_serialize_exact::<Rc<u64>, LEN>(Rc::new(u64::MIN)); }