]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/macro-document-private.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / rustdoc / macro-document-private.rs
1 // Checks that private macros are documented when `--document-private-items`
2 // is present.
3 //
4 // This is a regression test for issue #73754.
5 //
6 // compile-flags: --document-private-items
7
8 #![feature(decl_macro)]
9
10
11 // @has macro_document_private/macro.some_macro.html
12 macro some_macro {
13     (a: tt) => {}
14 }
15
16 // @has macro_document_private/macro.another_macro.html
17 macro_rules! another_macro {
18     (a: tt) => {}
19 }