diff options
Diffstat (limited to 'tests/rustdoc/empty-doc-comment.rs')
-rw-r--r-- | tests/rustdoc/empty-doc-comment.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/rustdoc/empty-doc-comment.rs b/tests/rustdoc/empty-doc-comment.rs new file mode 100644 index 000000000..b1dae930e --- /dev/null +++ b/tests/rustdoc/empty-doc-comment.rs @@ -0,0 +1,22 @@ +// Ensure that empty doc comments don't panic. + +/*! +*/ + +/// +/// +pub struct Foo; + +#[doc = " +"] +pub mod Mod { + //! + //! +} + +/** +*/ +pub mod Another { + #![doc = " +"] +} |