rust/src/test/run-fail/spawnfail.rs

13 lines
191 B
Rust
Raw Normal View History

2011-09-22 13:06:26 -05:00
// xfail-test
// error-pattern:explicit
use std;
import std::task;
// We don't want to see any invalid reads
fn main() {
fn f() {
fail;
}
let g = f;
task::spawn(g);
}