From 5d49999ad36e7f6716d0537b40224d829bfd2c60 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 15 Dec 2014 18:24:07 -0500 Subject: [PATCH] Fix run pass tests --- src/test/run-pass/operator-overloading.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }