aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/spawn-non-nil-fn.rs
blob: 4ddb3fbfe2cfe7c08cf10c907844a175bfe27f66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: mismatched types

fn f(int x) -> int {
  ret x;
}

fn main() {
  spawn f(10);
}