// xfail-win32 extern mod std; struct complainer { c: comm::Chan, drop { error!("About to send!"); comm::send(self.c, true); error!("Sent!"); } } fn complainer(c: comm::Chan) -> complainer { error!("Hello!"); complainer { c: c } } fn f(c: comm::Chan) { let _c = move complainer(c); fail; } fn main() { let p = comm::Port(); let c = comm::Chan(&p); task::spawn_unlinked(|| f(c) ); error!("hiiiiiiiii"); assert comm::recv(p); }