rust/src/test/run-pass/alt-phi.rs

15 lines
194 B
Rust
Raw Normal View History

tag thing { a; b; c; }
fn foo(it: block(int)) { it(10); }
fn main() {
2011-07-27 07:19:39 -05:00
let x = true;
alt a {
a. { x = true; foo {|_i|} }
2011-07-27 07:19:39 -05:00
b. { x = false; }
c. { x = false; }
}
}