deny using default function in impl const Trait
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user