We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f1ccd commit abef2edCopy full SHA for abef2ed
src/test/rustdoc/macros.rs
@@ -8,3 +8,17 @@ macro_rules! my_macro {
8
($a:tt) => ();
9
($e:expr) => {};
10
}
11
+
12
+// Check that exported macro defined in a module are shown at crate root.
13
+// @has macros/macro.my_sub_macro.html //pre 'macro_rules! my_sub_macro {'
14
+// @has - //pre '() => { ... };'
15
+// @has - //pre '($a:tt) => { ... };'
16
+// @has - //pre '($e:expr) => { ... };'
17
+mod sub {
18
+ #[macro_export]
19
+ macro_rules! my_sub_macro {
20
+ () => {};
21
+ ($a:tt) => {};
22
+ ($e:expr) => {};
23
+ }
24
+}
0 commit comments