1 // aux-build:proc-macro-macro.rs
3 #![deny(rustdoc::broken_intra_doc_links)]
5 extern crate proc_macro_macro;
8 pub use proc_macro_macro::{DeriveA, attr_a};
9 use proc_macro_macro::{DeriveB, attr_b};
11 // @has proc_macro/struct.Foo.html
12 // @has - '//a/@href' 'derive.DeriveA.html'
13 // @has - '//a/@href' 'attr.attr_a.html'
14 // @has - '//a/@href' 'trait.DeriveTrait.html'
15 // @has - '//a/@href' '../proc_macro_macro/derive.DeriveB.html'
16 // @has - '//a/@href' '../proc_macro_macro/attr.attr_b.html'
17 /// Link to [DeriveA], [attr_a], [DeriveB], [attr_b], [DeriveTrait]
20 // @has proc_macro/struct.Bar.html
21 // @has - '//a/@href' 'derive.DeriveA.html'
22 // @has - '//a/@href' 'attr.attr_a.html'
23 /// Link to [deriveA](derive@DeriveA) [attr](macro@attr_a)
26 // this should not cause ambiguity errors
27 pub trait DeriveTrait {}