]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs
1 #![feature(const_trait_impl)]
3 pub const fn equals_self
<T
: PartialEq
>(t
: &T
) -> bool
{
5 //~^ ERROR can't compare
6 //~| ERROR cannot call non-const