1 //! Basic test for calling methods on generic type parameters in `const fn`.
5 #![feature(const_trait_impl)]
6 #![feature(const_fn_trait_bound)]
10 impl const PartialEq for S {
11 fn eq(&self, _: &S) -> bool {
14 fn ne(&self, other: &S) -> bool {
19 const fn equals_self<T: PartialEq>(t: &T) -> bool {
23 const fn equals_self_wrapper<T: PartialEq>(t: &T) -> bool {
27 pub const EQ: bool = equals_self_wrapper(&S);