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