c2fe7b6398
This reduces ++/&& spam in the output to a bare minimum. Issue #1507
9 lines
183 B
Rust
9 lines
183 B
Rust
fn test(f: fn@(uint) -> uint) -> uint {
|
|
ret f(22u);
|
|
}
|
|
|
|
fn main() {
|
|
let f = fn~(x: uint) -> uint { ret 4u; };
|
|
log(debug, test(f)); //! ERROR expected `fn@(uint) -> uint`
|
|
}
|