rust/src/test/compile-fail/sendfn-is-not-a-lambda.rs
Marijn Haverbeke c2fe7b6398 When pretty-printing fn types, leave off arg modes when they are the default
This reduces ++/&& spam in the output to a bare minimum.

Issue #1507
2012-01-16 12:08:00 +01:00

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`
}