2 #![feature(const_type_id)]
3 #![feature(core_intrinsics)]
9 static ID_ISIZE: TypeId = TypeId::of::<isize>();
12 assert_eq!(ID_ISIZE, TypeId::of::<isize>());
14 // sanity test of TypeId
15 const T: (TypeId, TypeId, TypeId) = (TypeId::of::<usize>(),
16 TypeId::of::<&'static str>(),
18 let (d, e, f) = (TypeId::of::<usize>(), TypeId::of::<&'static str>(),
29 // Check fn pointer against collisions
30 const F: (TypeId, TypeId) = (TypeId::of::<fn(fn(A) -> A) -> A>(),
31 TypeId::of::<fn(fn() -> A, A) -> A>());