1 #![feature(const_trait_impl)]
6 fn eq(&self, _: &S) -> bool {
11 const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
15 // Calling `equals_self` with something that has a non-const impl should throw an error, despite
16 // it not using the impl.
18 pub const EQ: bool = equals_self(&S);