Skip to content

Commit a3d71d7

Browse files
QuietMisdreavusManishearth
authored andcommitted
add a macro to the intra-links test
1 parent 00ce770 commit a3d71d7

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/test/rustdoc/intra-links.rs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,23 @@
1717
// @has - '//a/@href' '../intra_links/fn.this_function.html'
1818
// @has - '//a/@href' '../intra_links/constant.THIS_CONST.html'
1919
// @has - '//a/@href' '../intra_links/static.THIS_STATIC.html'
20+
// @has - '//a/@href' '../intra_links/macro.this_macro.html'
2021
//! In this crate we would like to link to:
2122
//!
22-
//! * [`ThisType`](struct ::ThisType)
23-
//! * [`ThisEnum`](enum ::ThisEnum)
24-
//! * [`ThisTrait`](trait ::ThisTrait)
25-
//! * [`ThisAlias`](type ::ThisAlias)
26-
//! * [`ThisUnion`](union ::ThisUnion)
27-
//! * [`this_function`](::this_function())
28-
//! * [`THIS_CONST`](const ::THIS_CONST)
29-
//! * [`THIS_STATIC`](static ::THIS_STATIC)
23+
//! * [`ThisType`](ThisType)
24+
//! * [`ThisEnum`](ThisEnum)
25+
//! * [`ThisTrait`](ThisTrait)
26+
//! * [`ThisAlias`](ThisAlias)
27+
//! * [`ThisUnion`](ThisUnion)
28+
//! * [`this_function`](this_function)
29+
//! * [`THIS_CONST`](THIS_CONST)
30+
//! * [`THIS_STATIC`](THIS_STATIC)
31+
//! * [`this_macro`](this_macro!)
32+
33+
#[macro_export]
34+
macro_rules! this_macro {
35+
() => {};
36+
}
3037

3138
pub struct ThisType;
3239
pub enum ThisEnum { ThisVariant, }

0 commit comments

Comments
 (0)