about summary refs log tree commit diff
path: root/src/test/rustdoc/macro-generated-macro.rs
blob: 25d8bc3ec62817243fcb29657566ea1b89b2a0d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! outer {
    ($($matcher:tt)*) => {
        #[macro_export]
        macro_rules! inner {
            (<= $($matcher)* =>) => {};
        }
    }
}

// @has macro_generated_macro/macro.inner.html //pre 'macro_rules! inner {'
// @has - //pre '(<= type $($i : ident) :: * + $e : expr =>) => { ... };'
outer!(type $($i:ident)::* + $e:expr);

inner!(<= type foo::bar + x.sort() =>);