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

8 lines
135 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// error-pattern: mismatched types
use std;
import std::task;
2011-07-27 14:19:39 +02:00
fn f(x: int) -> int { ret x; }
2010-06-23 21:03:09 -07:00
fn main() { task::_spawn(bind f(10)); }