60ae1590af
And remove support for the old syntax
16 lines
345 B
Rust
16 lines
345 B
Rust
fn wrapper3<T: copy>(i: T, j: int) {
|
|
log(debug, i);
|
|
log(debug, j);
|
|
// This is a regression test that the spawn3 thunk to wrapper3
|
|
// correctly finds the value of j
|
|
assert j == 123456789;
|
|
}
|
|
|
|
fn spawn3<T: copy>(i: T, j: int) {
|
|
let wrapped = bind wrapper3(i, j);
|
|
wrapped();
|
|
}
|
|
|
|
fn main() {
|
|
spawn3(127u8, 123456789);
|
|
} |