diff options
Diffstat (limited to 'src/test/run-pass/default-method-simple.rs')
| -rw-r--r-- | src/test/run-pass/default-method-simple.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/default-method-simple.rs b/src/test/run-pass/default-method-simple.rs index 4e17506d6ea..62b29d4e4eb 100644 --- a/src/test/run-pass/default-method-simple.rs +++ b/src/test/run-pass/default-method-simple.rs @@ -11,11 +11,11 @@ #[allow(default_methods)]; trait Foo { - fn f() { + fn f(&self) { io::println("Hello!"); self.g(); } - fn g(); + fn g(&self); } struct A { @@ -23,7 +23,7 @@ struct A { } impl Foo for A { - fn g() { + fn g(&self) { io::println("Goodbye!"); } } |
