mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Add regression test
This commit is contained in:
parent
3ee6d0b6b6
commit
6aacbd87f4
19
src/test/rustdoc/macro-private-not-documented.rs
Normal file
19
src/test/rustdoc/macro-private-not-documented.rs
Normal file
@ -0,0 +1,19 @@
|
||||
// Checks that private macros aren't documented by default. They
|
||||
// should be still be documented in `--document-private-items` mode,
|
||||
// but that's tested in `macro-document-private.rs`.
|
||||
//
|
||||
//
|
||||
// This is a regression text for issue #88453.
|
||||
#![feature(decl_macro)]
|
||||
|
||||
// @!has macro_private_not_documented/index.html 'a_macro'
|
||||
// @!has macro_private_not_documented/macro.a_macro.html
|
||||
macro_rules! a_macro {
|
||||
() => ()
|
||||
}
|
||||
|
||||
// @!has macro_private_not_documented/index.html 'another_macro'
|
||||
// @!has macro_private_not_documented/macro.another_macro.html
|
||||
macro another_macro {
|
||||
() => ()
|
||||
}
|
Loading…
Reference in New Issue
Block a user