Fix run pass tests
This commit is contained in:
parent
5f347d7708
commit
5d49999ad3
@ -31,13 +31,13 @@ impl ops::Sub<Point,Point> for Point {
|
||||
}
|
||||
|
||||
impl ops::Neg<Point> for Point {
|
||||
fn neg(&self) -> Point {
|
||||
fn neg(self) -> Point {
|
||||
Point {x: -self.x, y: -self.y}
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::Not<Point> for Point {
|
||||
fn not(&self) -> Point {
|
||||
fn not(self) -> Point {
|
||||
Point {x: !self.x, y: !self.y }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user