Skip to content

Commit 5d49999

Browse files
author
Jorge Aparicio
committed
Fix run pass tests
1 parent 5f347d7 commit 5d49999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/run-pass/operator-overloading.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ impl ops::Sub<Point,Point> for Point {
3131
}
3232

3333
impl ops::Neg<Point> for Point {
34-
fn neg(&self) -> Point {
34+
fn neg(self) -> Point {
3535
Point {x: -self.x, y: -self.y}
3636
}
3737
}
3838

3939
impl ops::Not<Point> for Point {
40-
fn not(&self) -> Point {
40+
fn not(self) -> Point {
4141
Point {x: !self.x, y: !self.y }
4242
}
4343
}

0 commit comments

Comments
 (0)