9 lines
127 B
Rust
9 lines
127 B
Rust
// error-pattern: mismatched types
|
|
|
|
use std;
|
|
import task;
|
|
|
|
fn f(&&x: int) -> int { ret x; }
|
|
|
|
fn main() { task::spawn(10, f); }
|