deny using default function in impl const Trait

This commit is contained in:
Deadbeef
2021-06-23 18:37:26 +08:00
parent 4573a4a879
commit 22a8d46ed3
9 changed files with 105 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ impl const PartialEq for Int {
fn eq(&self, rhs: &Self) -> bool {
self.0 == rhs.0
}
fn ne(&self, other: &Self) -> bool {
!self.eq(other)
}
}
pub trait Plus {