1 #![feature(external_doc)]
3 // @has external_doc/struct.CanHasDocs.html
4 // @has - '//h1' 'External Docs'
5 // @has - '//h2' 'Inline Docs'
6 #[doc(include = "auxiliary/external-doc.md")]
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")]
15 pub struct IncludeStrDocs;
17 macro_rules! dir { () => { "auxiliary" } }
19 // @has external_doc/struct.EagerExpansion.html
20 // @has - '//h1' 'External Docs'
21 #[doc = include_str!(concat!(dir!(), "/external-doc.md"))]
23 pub struct EagerExpansion;