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
|
@ -14,7 +14,7 @@ trait Mumbo {
|
|||
fn jbmbo(&self) -> @uint;
|
||||
}
|
||||
|
||||
impl uint: Mumbo {
|
||||
impl Mumbo for uint {
|
||||
// Cannot have a larger effect than the trait:
|
||||
fn jumbo(&self, x: @uint) { *self + *x; }
|
||||
//~^ ERROR expected pure fn but found impure fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue