Convert the test suite to use the Drop trait
This commit is contained in:
parent
6e650f2d2c
commit
f4a5a76aa4
75 changed files with 462 additions and 161 deletions
|
@ -1,6 +1,9 @@
|
|||
struct X {
|
||||
x: ~str,
|
||||
drop {
|
||||
}
|
||||
|
||||
impl X : Drop {
|
||||
fn finalize() {
|
||||
error!("value: %s", self.x);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue