rust/src/test/compile-fail/spawn-non-nil-fn.rs
2010-06-23 21:03:09 -07:00

10 lines
98 B
Rust

// error-pattern: mismatched types
fn f(int x) -> int {
ret x;
}
fn main() {
spawn f(10);
}