]> git.lizzy.rs Git - rust.git/blob - tests/ui/derives/issue-91550.stderr
fix various subst_identity vs skip_binder
[rust.git] / tests / ui / derives / issue-91550.stderr
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
3    |
4 LL | struct Value(u32);
5    | ------------
6    | |
7    | doesn't satisfy `Value: Eq`
8    | doesn't satisfy `Value: Hash`
9 ...
10 LL |     hs.insert(Value(0));
11    |        ^^^^^^
12    |
13    = note: the following trait bounds were not satisfied:
14            `Value: Eq`
15            `Value: Hash`
16 help: consider annotating `Value` with `#[derive(Eq, Hash, PartialEq)]`
17    |
18 LL | #[derive(Eq, Hash, PartialEq)]
19    |
20
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
23    |
24 LL | pub struct NoDerives;
25    | -------------------- doesn't satisfy `NoDerives: Eq`
26 LL |
27 LL | struct Object<T>(T);
28    | ---------------- method `use_eq` not found for this struct
29 ...
30 LL |     foo.use_eq();
31    |         ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
32    |
33 note: trait bound `NoDerives: Eq` was not satisfied
34   --> $DIR/issue-91550.rs:15:9
35    |
36 LL | impl<T: Eq> Object<T> {
37    |         ^^  ---------
38    |         |
39    |         unsatisfied trait bound introduced here
40 help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
41    |
42 LL | #[derive(Eq, PartialEq)]
43    |
44
45 error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but its trait bounds were not satisfied
46   --> $DIR/issue-91550.rs:27:9
47    |
48 LL | pub struct NoDerives;
49    | -------------------- doesn't satisfy `NoDerives: Ord`
50 LL |
51 LL | struct Object<T>(T);
52    | ---------------- method `use_ord` not found for this struct
53 ...
54 LL |     foo.use_ord();
55    |         ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
56    |
57 note: trait bound `NoDerives: Ord` was not satisfied
58   --> $DIR/issue-91550.rs:18:9
59    |
60 LL | impl<T: Ord> Object<T> {
61    |         ^^^  ---------
62    |         |
63    |         unsatisfied trait bound introduced here
64 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
65    |
66 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
67    |
68
69 error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoDerives>`, but its trait bounds were not satisfied
70   --> $DIR/issue-91550.rs:28:9
71    |
72 LL | pub struct NoDerives;
73    | --------------------
74    | |
75    | doesn't satisfy `NoDerives: Ord`
76    | doesn't satisfy `NoDerives: PartialOrd`
77 LL |
78 LL | struct Object<T>(T);
79    | ---------------- method `use_ord_and_partial_ord` not found for this struct
80 ...
81 LL |     foo.use_ord_and_partial_ord();
82    |         ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
83    |
84 note: the following trait bounds were not satisfied:
85       `NoDerives: Ord`
86       `NoDerives: PartialOrd`
87   --> $DIR/issue-91550.rs:21:9
88    |
89 LL | impl<T: Ord + PartialOrd> Object<T> {
90    |         ^^^   ^^^^^^^^^^  ---------
91    |         |     |
92    |         |     unsatisfied trait bound introduced here
93    |         unsatisfied trait bound introduced here
94 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
95    |
96 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
97    |
98
99 error: aborting due to 4 previous errors
100
101 For more information about this error, try `rustc --explain E0599`.