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

11 lines
114 B
Rust

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