diff --git a/src/test/run-pass/operator-overloading.rs b/src/test/run-pass/operator-overloading.rs index 8d743ba42e8..1e646e9399c 100644 --- a/src/test/run-pass/operator-overloading.rs +++ b/src/test/run-pass/operator-overloading.rs @@ -31,13 +31,13 @@ impl ops::Sub for Point { } impl ops::Neg for Point { - fn neg(&self) -> Point { + fn neg(self) -> Point { Point {x: -self.x, y: -self.y} } } impl ops::Not for Point { - fn not(&self) -> Point { + fn not(self) -> Point { Point {x: !self.x, y: !self.y } } }