fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied 2 --> $DIR/wf-trait-default-fn-arg.rs:11:5 3 | 4LL | struct Bar<T:Eq+?Sized> { value: Box<T> } 5 | ----------------------- required by `Bar` 6... 7LL | / fn bar(&self, x: &Bar<Self>) { 8LL | | 9LL | | // 10LL | | // Here, Eq ought to be implemented. 11LL | | } 12 | |_____^ the trait `std::cmp::Eq` is not implemented for `Self` 13 | 14 = help: consider adding a `where Self: std::cmp::Eq` bound 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0277`.