rust/src/test/run-pass/do-for-no-args.rs
2012-07-01 22:36:24 -07:00

10 lines
No EOL
140 B
Rust

// Testing that we can drop the || in for/do exprs
fn f(f: fn@() -> bool) { }
fn d(f: fn@()) { }
fn main() {
for f { }
do d { }
}