rust/src/test/compile-fail/spawn-non-nil-fn.rs
2011-10-20 18:23:47 -07:00

9 lines
134 B
Rust

// error-pattern: mismatched types
use std;
import std::task;
fn# f(&&x: int) -> int { ret x; }
fn main() { task::spawn2(10, f); }