5b028f527f
(Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.)
11 lines
150 B
Rust
11 lines
150 B
Rust
tag blah { a; b; }
|
|
|
|
fn or_alt(q: blah) -> int {
|
|
alt q { a | b { 42 } }
|
|
}
|
|
|
|
fn main() {
|
|
assert (or_alt(a) == 42);
|
|
assert (or_alt(b) == 42);
|
|
}
|