diff --git a/src/test/run-pass/class-dtor.rs b/src/test/run-pass/class-dtor.rs index e9194f05778..e875d3f8d5f 100644 --- a/src/test/run-pass/class-dtor.rs +++ b/src/test/run-pass/class-dtor.rs @@ -5,7 +5,7 @@ struct cat { impl cat : Drop { fn finalize(&self) { - self.done(self.meows); + (self.done)(self.meows); } } diff --git a/src/test/run-pass/issue-2633.rs b/src/test/run-pass/issue-2633.rs index 916db5b71cb..e0955575d60 100644 --- a/src/test/run-pass/issue-2633.rs +++ b/src/test/run-pass/issue-2633.rs @@ -12,7 +12,7 @@ type kitty_info = {kitty: cat}; // Code compiles and runs successfully if we add a + before the first arg fn nyan(kitty: cat, _kitty_info: kitty_info) { - kitty.meow(); + (kitty.meow)(); } fn main() { diff --git a/src/test/run-pass/newtype.rs b/src/test/run-pass/newtype.rs index 213770b0a66..0299da2ebef 100644 --- a/src/test/run-pass/newtype.rs +++ b/src/test/run-pass/newtype.rs @@ -4,5 +4,5 @@ fn compute(i: mytype) -> int { return i.val + 20; } fn main() { let myval = mytype({compute: compute, val: 30}); - assert (myval.compute(myval) == 50); + assert ((myval.compute)(myval) == 50); } diff --git a/src/test/run-pass/regions-copy-closure.rs b/src/test/run-pass/regions-copy-closure.rs index 834272ca920..1717aa2673f 100644 --- a/src/test/run-pass/regions-copy-closure.rs +++ b/src/test/run-pass/regions-copy-closure.rs @@ -10,6 +10,6 @@ fn main() { let mut i = 3; let cl_box = box_it(|| i += 1); assert i == 3; - cl_box.cl(); + (cl_box.cl)(); assert i == 4; } diff --git a/src/test/run-pass/regions-static-closure.rs b/src/test/run-pass/regions-static-closure.rs index 6622a6aa569..a9be7880280 100644 --- a/src/test/run-pass/regions-static-closure.rs +++ b/src/test/run-pass/regions-static-closure.rs @@ -7,7 +7,7 @@ fn box_it(+x: &r/fn()) -> closure_box/&r { } fn call_static_closure(cl: closure_box/&static) { - cl.cl(); + (cl.cl)(); } fn main() { diff --git a/src/test/run-pass/resource-generic.rs b/src/test/run-pass/resource-generic.rs index 04c4c6672a3..9fc3ad5361b 100644 --- a/src/test/run-pass/resource-generic.rs +++ b/src/test/run-pass/resource-generic.rs @@ -7,7 +7,7 @@ struct finish { impl finish : Drop { fn finalize(&self) { - self.arg.fin(self.arg.val); + (self.arg.fin)(self.arg.val); } }