mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 05:45:59 +00:00
18 lines
221 B
Rust
18 lines
221 B
Rust
// check-pass
|
|
|
|
struct S;
|
|
|
|
impl PartialEq for S {
|
|
fn eq(&self, _: &S) -> bool {
|
|
true
|
|
}
|
|
}
|
|
|
|
const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
|
true
|
|
}
|
|
|
|
pub const EQ: bool = equals_self(&S);
|
|
|
|
fn main() {}
|