rust/src/test/run-pass/alt-phi.rs
2011-10-21 13:34:35 +02:00

15 lines
194 B
Rust

tag thing { a; b; c; }
fn foo(it: block(int)) { it(10); }
fn main() {
let x = true;
alt a {
a. { x = true; foo {|_i|} }
b. { x = false; }
c. { x = false; }
}
}