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