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

12 lines
177 B
Rust
Raw Normal View History

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