use std::collections::HashSet; /// natural case from the issue struct Value(u32); fn main() { let hs = HashSet::::new(); hs.insert(Value(0)); //~ ERROR } /// synthetic cases pub struct NoDerives; struct Object(T); impl Object { fn use_eq(&self) {} } impl Object { fn use_ord(&self) {} } impl Object { fn use_ord_and_partial_ord(&self) {} } fn function(foo: Object) { foo.use_eq(); //~ ERROR foo.use_ord(); //~ ERROR foo.use_ord_and_partial_ord(); //~ ERROR }