1 2 3 4 5 6 7 8 9 10 11
struct TypeWithoutDebug; impl PartialEq for TypeWithoutDebug { fn eq(&self, _other: &Self) -> bool { false } } fn main() { similar_asserts::assert_eq!(TypeWithoutDebug, TypeWithoutDebug); }