1 error[E0277]: the trait bound `U: std::cmp::Eq` is not satisfied
2 --> $DIR/specialization-wfcheck.rs:7:17
4 LL | trait Foo<'a, T: Eq + 'a> { }
5 | -- required by this bound in `Foo`
7 LL | default impl<U> Foo<'static, U> for () {}
8 | ^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `U`
10 help: consider restricting type parameter `U`
12 LL | default impl<U: std::cmp::Eq> Foo<'static, U> for () {}
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.