12 lines
124 B
Rust
12 lines
124 B
Rust
|
// error-pattern:fail
|
||
|
|
||
|
iter x() -> int {
|
||
|
fail;
|
||
|
put 0;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let a = @0;
|
||
|
for each x in x() {
|
||
|
}
|
||
|
}
|