rust/src/test/run-pass/alt-phi.rs
2011-07-27 15:54:33 +02:00

14 lines
No EOL
207 B
Rust

tag thing { a; b; c; }
iter foo() -> int { put 10; }
fn main() {
let x = true;
alt a {
a. { x = true; for each i: int in foo() { } }
b. { x = false; }
c. { x = false; }
}
}