rust/src/test/run-pass/bind-parameterized-args.rs
Michael Sullivan d1298f768c Have bind support non-alias parametric non-bound arguments.
This was previously disallowed by the typechecker and not properly handled
in trans. I removed the typechecker check (replacing it with a simpler
check that spawned functions don't have type params) and fixed trans.
Closes #756.
2011-07-27 18:46:46 -07:00

9 lines
127 B
Rust

// xfail-stage0
fn main() {
fn echo[T](c: int, x: vec[T]) { }
let y: fn(vec[int]) = bind echo(42, _);
y([1]);
}