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

11 lines
114 B
Rust
Raw Normal View History

// xfail-stage0
2010-06-23 21:03:09 -07:00
// error-pattern: mismatched types
fn f(int x) -> int {
ret x;
}
fn main() {
spawn f(10);
}