]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied |
0731742a | 2 | --> $DIR/wf-trait-default-fn-ret.rs:11:5 |
b7449926 | 3 | | |
e1599b0c XL |
4 | LL | struct Bar<T:Eq+?Sized> { value: Box<T> } |
5 | | ----------------------- required by `Bar` | |
6 | ... | |
e74abb32 XL |
7 | LL | fn bar(&self) -> Bar<Self> { |
8 | | ^ - help: consider further restricting `Self`: `where Self: std::cmp::Eq` | |
9 | | _____| | |
10 | | | | |
532ac7d7 | 11 | LL | | |
b7449926 XL |
12 | LL | | // |
13 | LL | | // Here, Eq ought to be implemented. | |
14 | LL | | loop { } | |
15 | LL | | } | |
16 | | |_____^ the trait `std::cmp::Eq` is not implemented for `Self` | |
b7449926 XL |
17 | |
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0277`. |