diff options
Diffstat (limited to 'tests/rustdoc/extern/external-doc.rs')
| -rw-r--r-- | tests/rustdoc/extern/external-doc.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/extern/external-doc.rs b/tests/rustdoc/extern/external-doc.rs new file mode 100644 index 00000000000..c81aa17ed5a --- /dev/null +++ b/tests/rustdoc/extern/external-doc.rs @@ -0,0 +1,14 @@ +//@ has external_doc/struct.IncludeStrDocs.html +//@ has - '//h2' 'External Docs' +//@ has - '//h3' 'Inline Docs' +#[doc = include_str!("auxiliary/external-doc.md")] +/// ## Inline Docs +pub struct IncludeStrDocs; + +macro_rules! dir { () => { "auxiliary" } } + +//@ has external_doc/struct.EagerExpansion.html +//@ has - '//h2' 'External Docs' +#[doc = include_str!(concat!(dir!(), "/external-doc.md"))] +/// ## Inline Docs +pub struct EagerExpansion; |
