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-07-27 07:19:39 -05:00
|
|
|
let x =
|
|
|
|
alt true {
|
|
|
|
true { 10 }
|
|
|
|
false { alt true { true { fail } false { fail } } }
|
2011-06-15 13:19:50 -05:00
|
|
|
};
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|