94222f64 XL |
1 | // check-pass |
2 | |
94222f64 XL |
3 | struct S; |
4 | |
5 | impl PartialEq for S { |
6 | fn eq(&self, _: &S) -> bool { |
7 | true |
8 | } |
9 | } |
10 | |
11 | const fn equals_self<T: PartialEq>(t: &T) -> bool { |
12 | true |
13 | } |
14 | |
15 | pub const EQ: bool = equals_self(&S); |
16 | |
17 | fn main() {} |