518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
5 lines
122 B
Rust
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); }
|