summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/empty-doc-comment.rs
blob: b1dae930e066b6c4bcefc1797d3a87fefb323572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Ensure that empty doc comments don't panic.

/*!
*/

///
///
pub struct Foo;

#[doc = "
"]
pub mod Mod {
   //!
   //!
}

/**
*/
pub mod Another {
   #![doc = "
"]
}