diff options
Diffstat (limited to 'src/test/run-pass/trait-inheritance-cross-trait-call.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-cross-trait-call.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/trait-inheritance-cross-trait-call.rs b/src/test/run-pass/trait-inheritance-cross-trait-call.rs index 78e258bac48..5a1f109ac32 100644 --- a/src/test/run-pass/trait-inheritance-cross-trait-call.rs +++ b/src/test/run-pass/trait-inheritance-cross-trait-call.rs @@ -13,9 +13,9 @@ trait Bar : Foo { fn g() -> int; } struct A { x: int } -impl A : Foo { fn f() -> int { 10 } } +impl Foo for A { fn f() -> int { 10 } } -impl A : Bar { +impl Bar for A { // Testing that this impl can call the impl of Foo fn g() -> int { self.f() } } |
