]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/intra-link-proc-macro.rs
Auto merge of #77820 - jyn514:from-inner, r=petrochenkov
[rust.git] / src / test / rustdoc / intra-link-proc-macro.rs
1 // aux-build:intra-link-proc-macro-macro.rs
2 // build-aux-docs
3 #![deny(broken_intra_doc_links)]
4
5 extern crate intra_link_proc_macro_macro;
6
7
8 pub use intra_link_proc_macro_macro::{DeriveA, attr_a};
9 use intra_link_proc_macro_macro::{DeriveB, attr_b};
10
11 // @has intra_link_proc_macro/struct.Foo.html
12 // @has - '//a/@href' '../intra_link_proc_macro/derive.DeriveA.html'
13 // @has - '//a/@href' '../intra_link_proc_macro/attr.attr_a.html'
14 // @has - '//a/@href' '../intra_link_proc_macro/trait.DeriveTrait.html'
15 // @has - '//a/@href' '../intra_link_proc_macro_macro/derive.DeriveB.html'
16 // @has - '//a/@href' '../intra_link_proc_macro_macro/attr.attr_b.html'
17 /// Link to [DeriveA], [attr_a], [DeriveB], [attr_b], [DeriveTrait]
18 pub struct Foo;
19
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
26 // this should not cause ambiguity errors
27 pub trait DeriveTrait {}