mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
23 lines
319 B
Rust
23 lines
319 B
Rust
macro_rules! expr {
|
|
(no_semi) => {
|
|
return true
|
|
};
|
|
(semi) => {
|
|
return true;
|
|
};
|
|
}
|
|
|
|
fn foo() -> bool {
|
|
match true {
|
|
true => expr!(no_semi),
|
|
false if false => {
|
|
expr!(semi)
|
|
}
|
|
false => {
|
|
expr!(semi);
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|