103197bc42
The failure will basically go 'through' the dead parent and continue propagating the failure (as if the child was reparented).
18 lines
260 B
Rust
18 lines
260 B
Rust
// -*- rust -*-
|
|
|
|
// error-pattern:fail
|
|
use std;
|
|
import std::task;
|
|
import std::comm::chan;
|
|
import std::comm::port;
|
|
import std::comm::recv;
|
|
|
|
fn child() { fail; }
|
|
|
|
fn main() {
|
|
let p = port::<int>();
|
|
let f = child;
|
|
task::spawn(f);
|
|
task::yield();
|
|
}
|