rust/src/test/compile-fail/kindck-destructor-owned.rs
2014-01-03 14:02:01 -08:00

13 lines
207 B
Rust

#[feature(managed_boxes)];
struct Foo {
f: @int,
}
impl Drop for Foo { //~ ERROR cannot implement a destructor on a structure that does not satisfy Send
fn drop(&mut self) {
}
}
fn main() { }