rust/src/test/auxiliary/issue2170lib.rs
2012-11-29 11:06:15 -08:00

21 lines
194 B
Rust

export rsrc;
fn foo(_x: i32) {
}
struct rsrc {
x: i32,
}
impl rsrc : Drop {
fn finalize(&self) {
foo(self.x);
}
}
fn rsrc(x: i32) -> rsrc {
rsrc {
x: x
}
}