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

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

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