1 error[E0599]: the method `insert` exists for struct `HashSet<Value>`, but its trait bounds were not satisfied
2 --> $DIR/issue-91550.rs:8:8
4 LL | struct Value(u32);
7 | doesn't satisfy `Value: Eq`
8 | doesn't satisfy `Value: Hash`
10 LL | hs.insert(Value(0));
13 = note: the following trait bounds were not satisfied:
16 help: consider annotating `Value` with `#[derive(Eq, Hash, PartialEq)]`
18 LL | #[derive(Eq, Hash, PartialEq)]
21 error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its trait bounds were not satisfied
22 --> $DIR/issue-91550.rs:26:9
24 LL | pub struct NoDerives;
25 | -------------------- doesn't satisfy `NoDerives: Eq`
27 LL | struct Object<T>(T);
28 | ---------------- method `use_eq` not found for this struct
31 | ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
33 = note: the following trait bounds were not satisfied:
35 help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
37 LL | #[derive(Eq, PartialEq)]
40 error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but its trait bounds were not satisfied
41 --> $DIR/issue-91550.rs:27:9
43 LL | pub struct NoDerives;
44 | -------------------- doesn't satisfy `NoDerives: Ord`
46 LL | struct Object<T>(T);
47 | ---------------- method `use_ord` not found for this struct
50 | ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
52 = note: the following trait bounds were not satisfied:
54 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
56 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
59 error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoDerives>`, but its trait bounds were not satisfied
60 --> $DIR/issue-91550.rs:28:9
62 LL | pub struct NoDerives;
63 | --------------------
65 | doesn't satisfy `NoDerives: Ord`
66 | doesn't satisfy `NoDerives: PartialOrd`
68 LL | struct Object<T>(T);
69 | ---------------- method `use_ord_and_partial_ord` not found for this struct
71 LL | foo.use_ord_and_partial_ord();
72 | ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
74 = note: the following trait bounds were not satisfied:
76 `NoDerives: PartialOrd`
77 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
79 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
82 error: aborting due to 4 previous errors
84 For more information about this error, try `rustc --explain E0599`.