rust/src/test/compile-fail/auto-deref-bind.rs
2011-07-27 15:54:33 +02:00

4 lines
121 B
Rust

// error-pattern: mismatched types
fn add1(i: int) -> int { ret i + 1; }
fn main() { let f = @add1; let g = bind f(5); }