summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/best-failure.rs
blob: bbdd465d5ec96b7896b187427f3e60d29099cdac (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! number {
    (neg false, $self:ident) => { $self };
    ($signed:tt => $ty:ty;) => {
        number!(neg $signed, $self);
        //~^ ERROR no rules expected the token `$`
    };
}

number! { false => u8; }

fn main() {}