rust/src/test/run-fail/spawnfail.rs
Brian Anderson 07771ec25b Fix run-fail/spawnfail
Catch the case where a parent is killed immediately before it terminates
normally.
2011-11-11 14:20:00 -08:00

12 lines
No EOL
189 B
Rust

// xfail-win32
// error-pattern:explicit
use std;
import std::task;
// We don't want to see any invalid reads
fn main() {
fn f(&&_i: ()) {
fail;
}
task::spawn((), f);
}