]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs
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
: ~const PartialEq
>(t
: &T
) -> bool
{
23 pub const EQ
: bool
= equals_self(&S
);