summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/macro-document-private.rs
blob: d2496913ffcf2a4574b0dd4d77c54e4961b45845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Checks that private macros are documented when `--document-private-items`
// is present.
//
// This is a regression test for issue #73754.
//
// compile-flags: --document-private-items

#![feature(decl_macro)]


// @has macro_document_private/macro.some_macro.html
macro some_macro {
    (a: tt) => {}
}

// @has macro_document_private/macro.another_macro.html
macro_rules! another_macro {
    (a: tt) => {}
}