rust/src/test/run-pass/issue-3220.rs
2012-08-23 16:59:05 -07:00

8 lines
140 B
Rust

struct thing { x: int; new () { self.x = 0; } drop { } }
impl thing { fn f(self) {} }
fn main() {
let z = thing();
(move z).f();
}