rust/tests/target/macro_rules_semi.rs

23 lines
319 B
Rust
Raw Normal View History

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