2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-21 18:25:09 -04:00
|
|
|
// When all branches of an alt expression result in fail, the entire
|
|
|
|
// alt expression results in fail.
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let x =
|
|
|
|
alt true {
|
|
|
|
true { 10 }
|
|
|
|
false { alt true { true { fail } false { fail } } }
|
2011-06-15 11:19:50 -07:00
|
|
|
};
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|