1 //! Basic test for calling methods on generic type parameters in `const fn`.
5 #![feature(const_trait_impl)]
9 impl const PartialEq for S {
10 fn eq(&self, _: &S) -> bool {
13 fn ne(&self, other: &S) -> bool {
18 const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
22 pub const EQ: bool = equals_self(&S);