rust/src/test/run-fail/spawnfail.rs
2011-09-20 11:51:15 -07:00

12 lines
177 B
Rust

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