librustc: Replace impl Type : Trait
with impl Trait for Type
. rs=implflipping
This commit is contained in:
parent
8ec6f43d6c
commit
9143688197
583 changed files with 1115 additions and 1115 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue