rust/src/test/compile-fail/auto-deref-bind.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

5 lines
122 B
Rust

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