rust/src/test/run-pass/bind-parameterized-args-2.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
137 B
Rust

// xfail-stage0
fn main() {
fn echo[T](c: int, x: fn(&T)) { log_err "wee"; }
let y = bind echo(42, _);
y(fn(i: &str){});
}