rust/tests/ui/macros/empty-trailing-stmt.rs
2023-01-11 09:32:08 +00:00

11 lines
142 B
Rust

macro_rules! empty {
() => { }
}
fn foo() -> bool { //~ ERROR mismatched
{ true } //~ ERROR mismatched
empty!();
}
fn main() {}