rust/tests/target/macro_rules_semi.rs
2020-11-11 18:26:13 -06:00

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() {}