2020-11-28 19:25:41 -06:00
|
|
|
//@ aux-build:proc-macro-macro.rs
|
|
|
|
//@ build-aux-docs
|
2021-11-26 17:03:16 -06:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2020-11-28 19:25:41 -06:00
|
|
|
|
|
|
|
extern crate proc_macro_macro;
|
|
|
|
|
|
|
|
|
|
|
|
pub use proc_macro_macro::{DeriveA, attr_a};
|
|
|
|
use proc_macro_macro::{DeriveB, attr_b};
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has proc_macro/struct.Foo.html
|
|
|
|
//@ has - '//a/@href' 'derive.DeriveA.html'
|
|
|
|
//@ has - '//a/@href' 'attr.attr_a.html'
|
|
|
|
//@ has - '//a/@href' 'trait.DeriveTrait.html'
|
|
|
|
//@ has - '//a/@href' '../proc_macro_macro/derive.DeriveB.html'
|
|
|
|
//@ has - '//a/@href' '../proc_macro_macro/attr.attr_b.html'
|
2020-11-28 19:25:41 -06:00
|
|
|
/// Link to [DeriveA], [attr_a], [DeriveB], [attr_b], [DeriveTrait]
|
|
|
|
pub struct Foo;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has proc_macro/struct.Bar.html
|
|
|
|
//@ has - '//a/@href' 'derive.DeriveA.html'
|
|
|
|
//@ has - '//a/@href' 'attr.attr_a.html'
|
2020-11-28 19:25:41 -06:00
|
|
|
/// Link to [deriveA](derive@DeriveA) [attr](macro@attr_a)
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
// this should not cause ambiguity errors
|
|
|
|
pub trait DeriveTrait {}
|