about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-06-10 09:11:17 -0700
committerManish Goregaokar <manishsmail@gmail.com>2020-06-10 09:11:17 -0700
commit34c6b38e68f2e88bcc6c943494a7c05d35a71f17 (patch)
treef7f3c08f2576eb36ee2fb89785c2ea957acbad5a
parent178465516ef7571cc25a1d243902d3ea8fa220e0 (diff)
downloadrust-34c6b38e68f2e88bcc6c943494a7c05d35a71f17.tar.gz
rust-34c6b38e68f2e88bcc6c943494a7c05d35a71f17.zip
Add tests for macro@ and derive@
-rw-r--r--src/test/rustdoc/intra-link-proc-macro.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/rustdoc/intra-link-proc-macro.rs b/src/test/rustdoc/intra-link-proc-macro.rs
index 405e08d4c07..7b6ea5d60f8 100644
--- a/src/test/rustdoc/intra-link-proc-macro.rs
+++ b/src/test/rustdoc/intra-link-proc-macro.rs
@@ -1,6 +1,5 @@
 // aux-build:intra-link-proc-macro-macro.rs
 // build-aux-docs
-// @has intra_link_proc_macro/index.html
 #![deny(intra_doc_link_resolution_failure)]
 
 extern crate intra_link_proc_macro_macro;
@@ -9,6 +8,7 @@ extern crate intra_link_proc_macro_macro;
 pub use intra_link_proc_macro_macro::{DeriveA, attr_a};
 use intra_link_proc_macro_macro::{DeriveB, attr_b};
 
+// @has intra_link_proc_macro/struct.Foo.html
 // @has - '//a/@href' '../intra_link_proc_macro/derive.DeriveA.html'
 // @has - '//a/@href' '../intra_link_proc_macro/attr.attr_a.html'
 // @has - '//a/@href' '../intra_link_proc_macro/trait.DeriveTrait.html'
@@ -17,5 +17,11 @@ use intra_link_proc_macro_macro::{DeriveB, attr_b};
 /// Link to [DeriveA], [attr_a], [DeriveB], [attr_b], [DeriveTrait]
 pub struct Foo;
 
+// @has intra_link_proc_macro/struct.Bar.html
+// @has - '//a/@href' '../intra_link_proc_macro/derive.DeriveA.html'
+// @has - '//a/@href' '../intra_link_proc_macro/attr.attr_a.html'
+/// Link to [deriveA](derive@DeriveA) [attr](macro@attr_a)
+pub struct Bar;
+
 // this should not cause ambiguity errors
 pub trait DeriveTrait {}