aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/iter-ret.rs
blob: 966234bef6bdc2ae6c0914a582707a7e60619580 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
iter x() -> int {
}

fn f() -> bool {
    for each (int i in x()) {
        ret true;
    }
    ret false;
}

fn main(vec[str] args) -> () {
  f();
}