rust/src/test/compile-fail/issue-2825-b.rs
2012-09-07 14:02:33 -07:00

18 lines
257 B
Rust

struct example {
x: int,
drop {} //~ ERROR First destructor declared
drop {
debug!("Goodbye, cruel world");
}
}
fn example() -> example {
example {
x: 1
}
}
fn main(_args: ~[~str]) {
let e: example = example();
}