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

8 lines
100 B
Rust

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