rust/src/test/compile-fail/spawn-non-nil-fn.rs

7 lines
107 B
Rust

// error-pattern: mismatched types
use std;
import task;
fn main() { task::spawn(fn~() -> int { 10 }); }