diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-12 19:32:14 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-13 20:07:10 -0700 |
| commit | 8fa66e8e07ca565119de195ceefb20cff50ae1ea (patch) | |
| tree | f9ae9910b40b04ae62daff56b8de1ae002765d2e /src/test/run-pass/trait-inheritance-call-bound-inherited.rs | |
| parent | a410652bc953137c8d579f218c2e3e68a9ef8c1c (diff) | |
| download | rust-8fa66e8e07ca565119de195ceefb20cff50ae1ea.tar.gz rust-8fa66e8e07ca565119de195ceefb20cff50ae1ea.zip | |
librustc: Remove implicit self from the language, except for old-style drop blocks.
Diffstat (limited to 'src/test/run-pass/trait-inheritance-call-bound-inherited.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-call-bound-inherited.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/trait-inheritance-call-bound-inherited.rs b/src/test/run-pass/trait-inheritance-call-bound-inherited.rs index 75dea9c500a..dcc1deed846 100644 --- a/src/test/run-pass/trait-inheritance-call-bound-inherited.rs +++ b/src/test/run-pass/trait-inheritance-call-bound-inherited.rs @@ -8,13 +8,13 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -trait Foo { fn f() -> int; } -trait Bar : Foo { fn g() -> int; } +trait Foo { fn f(&self) -> int; } +trait Bar : Foo { fn g(&self) -> int; } struct A { x: int } -impl Foo for A { fn f() -> int { 10 } } -impl Bar for A { fn g() -> int { 20 } } +impl Foo for A { fn f(&self) -> int { 10 } } +impl Bar for A { fn g(&self) -> int { 20 } } // Call a function on Foo, given a T: Bar fn gg<T:Bar>(a: &T) -> int { |
