diff options
Diffstat (limited to 'src/test/run-pass/trait-inheritance-multiple-inheritors.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-multiple-inheritors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/trait-inheritance-multiple-inheritors.rs b/src/test/run-pass/trait-inheritance-multiple-inheritors.rs index a293051d360..afcf5c87832 100644 --- a/src/test/run-pass/trait-inheritance-multiple-inheritors.rs +++ b/src/test/run-pass/trait-inheritance-multiple-inheritors.rs @@ -14,9 +14,9 @@ trait C: A { fn c(&self) -> int; } struct S { bogus: () } -impl S: A { fn a(&self) -> int { 10 } } -impl S: B { fn b(&self) -> int { 20 } } -impl S: C { fn c(&self) -> int { 30 } } +impl A for S { fn a(&self) -> int { 10 } } +impl B for S { fn b(&self) -> int { 20 } } +impl C for S { fn c(&self) -> int { 30 } } // Both B and C inherit from A fn f<T: B C>(x: &T) { @@ -27,4 +27,4 @@ fn f<T: B C>(x: &T) { pub fn main() { f(&S { bogus: () }) -} \ No newline at end of file +} |
