blob: 2655b0260fdd76cb79e3919bd92185e109cd4ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// This is what the signature to spawn should look like with bare functions
fn spawn<T: Send>(val: T, f: extern fn(T)) {
f(val);
}
fn f(+i: int) {
assert i == 100;
}
fn main() {
spawn(100, f);
}
|