Skip to content

Commit 5e8bd9b

Browse files
Add test for empty doc comments with a backline
1 parent 43d0497 commit 5e8bd9b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/rustdoc/empty-doc-comment.rs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Ensure that empty doc comments don't panic.
2+
3+
/*!
4+
*/
5+
6+
///
7+
///
8+
pub struct Foo;
9+
10+
#[doc = "
11+
"]
12+
pub mod Mod {
13+
//!
14+
//!
15+
}
16+
17+
/**
18+
*/
19+
pub mod Another {
20+
#![doc = "
21+
"]
22+
}

0 commit comments

Comments
 (0)