rust/src/test/run-pass/bind-parameterized-args.rs
2011-08-16 15:05:56 -07:00

8 lines
108 B
Rust

fn main() {
fn echo<T>(c: int, x: &[T]) { }
let y: fn(&[int]) = bind echo(42, _);
y(~[1]);
}