switch Drop to &mut self
This commit is contained in:
parent
bc89ade401
commit
4e161a4d40
129 changed files with 192 additions and 203 deletions
|
@ -12,7 +12,7 @@ type Foo = @[u8];
|
|||
|
||||
impl Drop for Foo { //~ ERROR the Drop trait may only be implemented
|
||||
//~^ ERROR cannot provide an extension implementation
|
||||
fn drop(&self) {
|
||||
fn drop(&mut self) {
|
||||
println("kaboom");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue