rust/src/test/compile-fail/bind-parameterized-args.rs

9 lines
199 B
Rust
Raw Normal View History

// xfail-stage0
// error-pattern:Bind arguments with types containing parameters must be
fn main() {
2011-07-27 07:19:39 -05:00
fn echo[T](c: int, x: vec[T]) { }
2011-07-27 07:19:39 -05:00
let y: fn(vec[int]) = bind echo(42, _);
2011-07-27 07:19:39 -05:00
y([1]);
}