summary refs log tree commit diff
path: root/src/test/run-pass/do-for-no-args.rs
blob: d3f860e16ece79144113ca8fddef7d796c7b198c (plain)
1
2
3
4
5
6
7
8
9
10
// 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 { }
}