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