summary refs log tree commit diff
path: root/src/test/compile-fail/spawn-non-nil-fn.rs
blob: 5394fca6b3bd50355d43c860881c1127ef20b584 (plain)
1
2
3
4
5
6
// error-pattern: mismatched types

use std;
import task;

fn main() { task::spawn(fn~() -> int { 10 }); }