Add a test of rustdoc on macro-generated macro

This commit is contained in:
David Tolnay 2021-12-28 13:52:33 -08:00
parent 544a6bb7e7
commit 0f8415b8e1
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View 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() =>);