blob: 6b3a4ae1b95ee5c5ef361461aad8151fb7d1ed34 [file] [log] [blame] [edit]
//@ known-bug: #110395
// FIXME(effects) check-pass
#![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() {}