mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-18 10:38:11 +00:00
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() {
|
||
|
}
|
||
|
|
||
|
|