Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
223 B
Rust
Raw Normal View History

// run-pass
// This is what the signature to spawn should look like with bare functions
fn spawn<T:Send>(val: T, f: fn(T)) {
2013-02-15 02:44:18 -08:00
f(val);
}
fn f(i: isize) {
assert_eq!(i, 100);
}
pub fn main() {
spawn(100, f);
}