summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-70446.rs
blob: 407094d55ffef63d3dbceaa8eea7f3c9c1df3a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass

macro_rules! foo {
    ($(: $p:path)? $(: $l:lifetime)? ) => { bar! {$(: $p)? $(: $l)? } };
}

macro_rules! bar {
    ($(: $p:path)? $(: $l:lifetime)? ) => {};
}

foo! {: 'a }

fn main() {}