]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied |
74b04a01 | 2 | --> $DIR/wf-trait-fn-arg.rs:10:22 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | struct Bar<T:Eq+?Sized> { value: Box<T> } |
ba9703b0 | 5 | | -- required by this bound in `Bar` |
e1599b0c | 6 | ... |
b7449926 | 7 | LL | fn bar(&self, x: &Bar<Self>); |
74b04a01 XL |
8 | | ^^^^^^^^^^ - help: consider further restricting `Self`: `where Self: std::cmp::Eq` |
9 | | | | |
10 | | the trait `std::cmp::Eq` is not implemented for `Self` | |
b7449926 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0277`. |