2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-21 17:25:09 -05:00
|
|
|
// When all branches of an alt expression result in fail, the entire
|
|
|
|
// alt expression results in fail.
|
|
|
|
fn main() {
|
2011-06-15 13:19:50 -05:00
|
|
|
auto x =
|
|
|
|
alt (true) {
|
|
|
|
case (true) { 10 }
|
|
|
|
case (false) {
|
|
|
|
alt (true) { case (true) { fail } case (false) { fail } }
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|