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 {
|
2012-08-03 21:59:04 -05:00
|
|
|
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
|
|
|
}
|