about summary refs log tree commit diff
path: root/src/test/compile-fail/assign-to-method.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/assign-to-method.rs')
-rw-r--r--src/test/compile-fail/assign-to-method.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/assign-to-method.rs b/src/test/compile-fail/assign-to-method.rs
index 2436e4da8df..4993846f445 100644
--- a/src/test/compile-fail/assign-to-method.rs
+++ b/src/test/compile-fail/assign-to-method.rs
@@ -16,7 +16,7 @@ struct cat {
 
 pub impl cat {
 
-  fn speak() { self.meows += 1u; }
+  fn speak(&self) { self.meows += 1u; }
 }
 
 fn cat(in_x : uint, in_y : int) -> cat {