Skip to content

Commit fc6a05c

Browse files
Add test for reexported hidden macro
1 parent e2d9dee commit fc6a05c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Ensure that inlined reexport of hidden macros is working as expected.
2+
// Part of <https://github.com/rust-lang/rust/issues/59368>.
3+
4+
#![crate_name = "foo"]
5+
6+
// @has 'foo/index.html'
7+
// @has - '//*[@id="main-content"]//a[@href="macro.Macro2.html"]' 'Macro2'
8+
9+
// @has 'foo/macro.Macro2.html'
10+
// @has - '//*[@class="docblock"]' 'Displayed'
11+
12+
#[macro_export]
13+
#[doc(hidden)]
14+
macro_rules! foo {
15+
() => {};
16+
}
17+
18+
/// not displayed
19+
pub use crate::foo as Macro;
20+
/// Displayed
21+
#[doc(inline)]
22+
pub use crate::foo as Macro2;

0 commit comments

Comments
 (0)