Skip to content

Commit 34c6b38

Browse files
committed
Add tests for macro@ and derive@
1 parent 1784655 commit 34c6b38

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/rustdoc/intra-link-proc-macro.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// aux-build:intra-link-proc-macro-macro.rs
22
// build-aux-docs
3-
// @has intra_link_proc_macro/index.html
43
#![deny(intra_doc_link_resolution_failure)]
54

65
extern crate intra_link_proc_macro_macro;
@@ -9,6 +8,7 @@ extern crate intra_link_proc_macro_macro;
98
pub use intra_link_proc_macro_macro::{DeriveA, attr_a};
109
use intra_link_proc_macro_macro::{DeriveB, attr_b};
1110

11+
// @has intra_link_proc_macro/struct.Foo.html
1212
// @has - '//a/@href' '../intra_link_proc_macro/derive.DeriveA.html'
1313
// @has - '//a/@href' '../intra_link_proc_macro/attr.attr_a.html'
1414
// @has - '//a/@href' '../intra_link_proc_macro/trait.DeriveTrait.html'
@@ -17,5 +17,11 @@ use intra_link_proc_macro_macro::{DeriveB, attr_b};
1717
/// Link to [DeriveA], [attr_a], [DeriveB], [attr_b], [DeriveTrait]
1818
pub struct Foo;
1919

20+
// @has intra_link_proc_macro/struct.Bar.html
21+
// @has - '//a/@href' '../intra_link_proc_macro/derive.DeriveA.html'
22+
// @has - '//a/@href' '../intra_link_proc_macro/attr.attr_a.html'
23+
/// Link to [deriveA](derive@DeriveA) [attr](macro@attr_a)
24+
pub struct Bar;
25+
2026
// this should not cause ambiguity errors
2127
pub trait DeriveTrait {}

0 commit comments

Comments
 (0)