summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/unused-macro-rules-malformed-rule.rs
blob: a826026ec405cc66cdef1cfbabc8bbae67f96dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(unused_macro_rules)]

macro_rules! foo {
    (v) => {};
    (w) => {};
    () => 0; //~ ERROR: macro rhs must be delimited
}

fn main() {
    foo!(v);
}