// -*- rust -*- // error-pattern:fail use std; import task; import comm::port; import comm::recv; fn grandchild(&&_i: ()) { fail; } fn child(&&_i: ()) { let p = port::(); task::spawn((), grandchild); let x = recv(p); } fn main() { let p = port::(); task::spawn((), child); let x = recv(p); }