rust/tests/ui/macros/issue-70446.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
205 B
Rust
Raw Normal View History

// check-pass
macro_rules! foo {
($(: $p:path)? $(: $l:lifetime)? ) => { bar! {$(: $p)? $(: $l)? } };
}
macro_rules! bar {
($(: $p:path)? $(: $l:lifetime)? ) => {};
}
foo! {: 'a }
fn main() {}