summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-non-lifetime.rs
blob: 26e1f2afa91bb81f1d76cfca0813a26592ad3872 (plain)
1
2
3
4
5
6
7
8
// Test for issue #50381: non-lifetime passed to :lifetime.

macro_rules! m { ($x:lifetime) => { } }

fn main() {
    m!(a);
    //~^ ERROR no rules expected the token `a`
}