librustc: Separate most trait bounds with '+'. rs=plussing

This commit is contained in:
Patrick Walton
2013-02-20 17:07:17 -08:00
parent a307608781
commit bf2a225c0b
204 changed files with 729 additions and 726 deletions

View File

@@ -19,7 +19,7 @@ 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) {
fn f<T:B + C>(x: &T) {
assert x.a() == 10;
assert x.b() == 20;
assert x.c() == 30;