]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/macro-generated-macro.rs
Rollup merge of #91122 - dtolnay:not, r=m-ou-se
[rust.git] / src / test / rustdoc / macro-generated-macro.rs
1 macro_rules! outer {
2     ($($matcher:tt)*) => {
3         #[macro_export]
4         macro_rules! inner {
5             (<= $($matcher)* =>) => {};
6         }
7     }
8 }
9
10 // @has macro_generated_macro/macro.inner.html //pre 'macro_rules! inner {'
11 // @has - //pre '(<= type $($i : ident) :: * + $e : expr =>) => { ... };'
12 outer!(type $($i:ident)::* + $e:expr);
13
14 inner!(<= type foo::bar + x.sort() =>);