rust/src/test/auxiliary/issue2170lib.rs
2012-09-06 10:52:26 -07:00

15 lines
147 B
Rust

export rsrc;
fn foo(_x: i32) {
}
struct rsrc {
let x: i32;
drop { foo(self.x); }
}
fn rsrc(x: i32) -> rsrc {
rsrc {
x: x
}
}