rust/src/test/compile-fail/spawn-non-nil-fn.rs
2011-05-24 20:23:21 -04:00

11 lines
114 B
Rust

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