rust/src/test/run-fail/linked-failure2.rs
Brian Anderson 103197bc42 Make failure propagation to dead parents work
The failure will basically go 'through' the dead parent and continue
propagating the failure (as if the child was reparented).
2011-09-14 15:48:14 -07:00

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();
}