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

9 lines
127 B
Rust

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