2012-11-14 00:22:37 -06:00
|
|
|
struct thing { x: int, }
|
|
|
|
|
|
|
|
impl thing : Drop {
|
2012-11-28 17:42:16 -06:00
|
|
|
fn finalize(&self) {}
|
2012-11-14 00:22:37 -06:00
|
|
|
}
|
|
|
|
|
2012-09-05 17:58:43 -05:00
|
|
|
fn thing() -> thing {
|
|
|
|
thing {
|
|
|
|
x: 0
|
|
|
|
}
|
|
|
|
}
|
2012-08-23 18:58:43 -05:00
|
|
|
impl thing { fn f(self) {} }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let z = thing();
|
|
|
|
(move z).f();
|
|
|
|
}
|