#[test] fn test_non_static_type_id() { assert_eq!(typeid::of::(), typeid::of::()); assert_eq!(typeid::of::<&str>(), typeid::of::<&'static str>()); assert_ne!(typeid::of::(), typeid::of::<[u8; 4]>()); assert_ne!(typeid::of::(), typeid::of::<[u32; 2]>()); assert_ne!(typeid::of::(), typeid::of::()); assert_ne!(typeid::of::(), typeid::of::<&usize>()); assert_ne!(typeid::of::<&usize>(), typeid::of::<&&usize>()); assert_ne!(typeid::of::<&usize>(), typeid::of::<&mut usize>()); assert_ne!(typeid::of::(), typeid::of::()); trait Trait<'a> {} assert_ne!( typeid::of:: Trait<'a>>(), typeid::of::>(), ); struct A; struct B; assert_ne!(typeid::of::(), typeid::of::()); }