Add tests for macro@ and derive@

This commit is contained in:
Manish Goregaokar 2020-06-10 09:11:17 -07:00
parent 178465516e
commit 34c6b38e68
1 changed files with 7 additions and 1 deletions

View File

@ -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 {}