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