]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/issue-91550.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / 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: the following trait bounds were not satisfied:
34            `NoDerives: Eq`
35 help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
36    |
37 LL | #[derive(Eq, PartialEq)]
38    |
39
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
42    |
43 LL | pub struct NoDerives;
44    | -------------------- doesn't satisfy `NoDerives: Ord`
45 LL |
46 LL | struct Object<T>(T);
47    | ---------------- method `use_ord` not found for this struct
48 ...
49 LL |     foo.use_ord();
50    |         ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
51    |
52    = note: the following trait bounds were not satisfied:
53            `NoDerives: Ord`
54 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
55    |
56 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
57    |
58
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
61    |
62 LL | pub struct NoDerives;
63    | --------------------
64    | |
65    | doesn't satisfy `NoDerives: Ord`
66    | doesn't satisfy `NoDerives: PartialOrd`
67 LL |
68 LL | struct Object<T>(T);
69    | ---------------- method `use_ord_and_partial_ord` not found for this struct
70 ...
71 LL |     foo.use_ord_and_partial_ord();
72    |         ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
73    |
74    = note: the following trait bounds were not satisfied:
75            `NoDerives: Ord`
76            `NoDerives: PartialOrd`
77 help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
78    |
79 LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
80    |
81
82 error: aborting due to 4 previous errors
83
84 For more information about this error, try `rustc --explain E0599`.