Add a test of rustdoc on macro-generated macro
This commit is contained in:
parent
544a6bb7e7
commit
0f8415b8e1
1 changed files with 14 additions and 0 deletions
14
src/test/rustdoc/macro-generated-macro.rs
Normal file
14
src/test/rustdoc/macro-generated-macro.rs
Normal file
|
@ -0,0 +1,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() =>);
|
Loading…
Add table
Reference in a new issue