2010-06-23 21:03:09 -07:00
|
|
|
// error-pattern: mismatched types
|
|
|
|
|
2011-08-13 15:20:11 -07:00
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import task;
|
2011-08-13 15:20:11 -07:00
|
|
|
|
2011-10-20 20:34:04 -07:00
|
|
|
fn f(&&x: int) -> int { ret x; }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-10-13 21:23:07 -07:00
|
|
|
fn main() { task::spawn(10, f); }
|