summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/empty-trailing-stmt.rs
blob: 3d78ed4a4759a2515bf201d54cb6b6a4012adf46 (plain)
1
2
3
4
5
6
7
8
9
10
macro_rules! empty {
    () => { }
}

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

fn main() {}