1
Fork 0
rust/src/test/compile-fail/drop-on-non-struct.rs

13 lines
169 B
Rust
Raw Normal View History

type Foo = @[u8];
impl Foo : Drop { //~ ERROR the Drop trait may only be implemented
fn finalize(&self) {
io::println("kaboom");
}
}
fn main() {
}