rust/src/test/run-pass/bind-parameterized-args.rs

8 lines
105 B
Rust

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