blob: cf45aa98b2fc9094d65b16f6b828a0d0ba7f7ec0 [file]
//@ check-pass
#![feature(const_trait_impl, const_cmp)]
const trait MyPartialEq {
fn eq(&self, other: &Self) -> bool;
}
const impl<T: [const] PartialEq> MyPartialEq for T {
fn eq(&self, other: &Self) -> bool {
PartialEq::eq(self, other)
}
}
fn main() {}