Skip to content

Commit 0f8415b

Browse files
committed
Add a test of rustdoc on macro-generated macro
1 parent 544a6bb commit 0f8415b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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() =>);

0 commit comments

Comments
 (0)