rust/src/test/run-pass/bind-parameterized-args-2.rs
Marijn Haverbeke 33167f7dec Adjust function signatures to allow for vecs being immediate
Some code was relying on vectors being implicitly by-reference (as
non-immediate value). This adds the necessary &&-sigils.

Closes #1021
2011-10-10 16:01:51 +02:00

7 lines
123 B
Rust

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