14 lines
311 B
Rust
14 lines
311 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 } }
|
|
}
|
|
};
|
|
} |