rust/src/test/run-pass/issue-3220.rs

18 lines
213 B
Rust
Raw Normal View History

struct thing { x: int, }
impl thing : Drop {
fn finalize(&self) {}
}
2012-09-05 17:58:43 -05:00
fn thing() -> thing {
thing {
x: 0
}
}
impl thing { fn f(self) {} }
fn main() {
let z = thing();
(move z).f();
}