Convert the test suite to use the Drop trait

This commit is contained in:
Ben Striegel 2012-11-14 01:22:37 -05:00 committed by Brian Anderson
parent 6e650f2d2c
commit f4a5a76aa4
75 changed files with 462 additions and 161 deletions

View file

@ -1,6 +1,9 @@
struct X {
x: ~str,
drop {
}
impl X : Drop {
fn finalize() {
error!("value: %s", self.x);
}
}