1
Fork 0

rustc: Implement the Drop trait. r=brson

This commit is contained in:
Patrick Walton 2012-11-05 17:50:01 -08:00
parent 70886d314d
commit 2904095570
11 changed files with 200 additions and 23 deletions

View file

@ -0,0 +1,12 @@
type Foo = @[u8];
impl Foo : Drop { //~ ERROR the Drop trait may only be implemented
fn finalize() {
io::println("kaboom");
}
}
fn main() {
}