2010-06-23 21:03:09 -07:00
|
|
|
// error-pattern: mismatched types
|
|
|
|
|
2011-08-13 15:20:11 -07:00
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn f(x: int) -> int { ret x; }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-08-25 11:20:43 -07:00
|
|
|
fn main() { task::spawn(bind f(10)); }
|