13 lines
164 B
Rust
13 lines
164 B
Rust
![]() |
type Foo = @[u8];
|
||
|
|
||
|
impl Foo : Drop { //~ ERROR the Drop trait may only be implemented
|
||
|
fn finalize() {
|
||
|
io::println("kaboom");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|
||
|
|
||
|
|