use type_hash::TypeHash; #[derive(TypeHash)] #[allow(unused)] enum Foo { A(A), B(Vec), } #[test] fn different_generic_args_give_different_hashes() { assert_ne!(Foo::::type_hash(), Foo::::type_hash()) } #[test] fn same_generic_args_give_same_hashes() { assert_eq!(Foo::::type_hash(), Foo::::type_hash()) }