summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-in-expression-context-2.rs
blob: 9423f0a359c69bdf04de02bccd2b926cde56afcb (plain)
1
2
3
4
5
6
7
8
macro_rules! empty { () => () }

fn main() {
    match 42 {
        _ => { empty!() }
//~^ ERROR macro expansion ends with an incomplete expression
    };
}