2011-10-13 14:16:26 -05:00
|
|
|
fn# f<T>(i: T, j: T, k: T) {
|
|
|
|
assert i == j;
|
|
|
|
assert j != k;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// Binding a bare function turns it into a shared closure
|
2011-10-18 17:07:40 -05:00
|
|
|
let g: fn@() = bind f(10, 10, 20);
|
2011-10-13 14:16:26 -05:00
|
|
|
g();
|
|
|
|
}
|