// run-pass #![feature(const_type_id)] #![feature(const_trait_impl)] use std::any::TypeId; const fn main() { assert!(TypeId::of::() == TypeId::of::()); assert!(TypeId::of::<()>() != TypeId::of::()); const _A: bool = TypeId::of::() < TypeId::of::(); // can't assert `_A` because it is not deterministic }