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

10 lines
98 B
Rust
Raw Normal View History

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