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

8 lines
120 B
Rust

fn main() {
fn echo<T>(c: int, x: fn@(T)) { #error("wee"); }
let y = echo(42, _);
y(fn@(&&i: str) { });
}