]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/external-doc.rs
Rollup merge of #84464 - jyn514:type-kind, r=CraftSpider
[rust.git] / src / test / rustdoc / external-doc.rs
1 #![feature(external_doc)]
2 #![feature(extended_key_value_attributes)]
3
4 // @has external_doc/struct.CanHasDocs.html
5 // @has - '//h1' 'External Docs'
6 // @has - '//h2' 'Inline Docs'
7 #[doc(include = "auxiliary/external-doc.md")]
8 /// ## Inline Docs
9 pub struct CanHasDocs;
10
11 // @has external_doc/struct.IncludeStrDocs.html
12 // @has - '//h1' 'External Docs'
13 // @has - '//h2' 'Inline Docs'
14 #[doc = include_str!("auxiliary/external-doc.md")]
15 /// ## Inline Docs
16 pub struct IncludeStrDocs;
17
18 macro_rules! dir { () => { "auxiliary" } }
19
20 // @has external_doc/struct.EagerExpansion.html
21 // @has - '//h1' 'External Docs'
22 #[doc = include_str!(concat!(dir!(), "/external-doc.md"))]
23 /// ## Inline Docs
24 pub struct EagerExpansion;