2 // error-pattern:1 == 2
9 fn child(&&_args: ()) { assert (1 == 2); }
11 fn parent(&&_args: ()) {
12 let p = port::<int>();
13 task::spawn((), child);
17 // This task is not linked to the failure chain, but since the other
18 // tasks are going to fail the kernel, this one will fail too
19 fn sleeper(&&_args: ()) {
20 let p = port::<int>();
25 task::spawn((), sleeper);
26 task::spawn((), parent);