Add test for empty doc comments with a backline
This commit is contained in:
parent
43d0497824
commit
5e8bd9bbaa
1 changed files with 22 additions and 0 deletions
22
src/test/rustdoc/empty-doc-comment.rs
Normal file
22
src/test/rustdoc/empty-doc-comment.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Ensure that empty doc comments don't panic.
|
||||
|
||||
/*!
|
||||
*/
|
||||
|
||||
///
|
||||
///
|
||||
pub struct Foo;
|
||||
|
||||
#[doc = "
|
||||
"]
|
||||
pub mod Mod {
|
||||
//!
|
||||
//!
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
pub mod Another {
|
||||
#![doc = "
|
||||
"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue