blob: 5120e6bfb41178cbcff34161a715f0af39f966fa [file] [log] [blame]
// known-bug: #110395
#![feature(const_trait_impl)]
#[const_trait]
trait MyPartialEq {
fn eq(&self, other: &Self) -> bool;
}
impl<T: ~const PartialEq> const MyPartialEq for T {
fn eq(&self, other: &Self) -> bool {
PartialEq::eq(self, other)
}
}
fn main() {}