deny using default function in impl const Trait
This commit is contained in:
parent
4573a4a879
commit
22a8d46ed3
9 changed files with 105 additions and 0 deletions
|
@ -11,6 +11,9 @@ impl const PartialEq for S {
|
|||
fn eq(&self, _: &S) -> bool {
|
||||
true
|
||||
}
|
||||
fn ne(&self, other: &S) -> bool {
|
||||
!self.eq(other)
|
||||
}
|
||||
}
|
||||
|
||||
// This duplicate bound should not result in ambiguities. It should be equivalent to a single const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue