8102926b4b
Thanks for the review, Jesse.
21 lines
328 B
Rust
21 lines
328 B
Rust
// When all branches of an alt expression result in fail, the entire
|
|
// alt expression results in fail.
|
|
|
|
fn main() {
|
|
auto x = alt (true) {
|
|
case (true) {
|
|
10
|
|
}
|
|
case (false) {
|
|
alt (true) {
|
|
case (true) {
|
|
fail
|
|
}
|
|
case (false) {
|
|
fail
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|