2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2020-11-22 04:19:46 +01:00
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
|
|
|
impl PartialEq for S {
|
|
|
|
fn eq(&self, _: &S) -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-25 11:53:16 +00:00
|
|
|
const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
2020-11-22 04:19:46 +01:00
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
pub const EQ: bool = equals_self(&S);
|
|
|
|
|
|
|
|
fn main() {}
|