Skip to content

Commit

Permalink
Add test for empty doc comments with a backline
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 8, 2022
1 parent 43d0497 commit 5e8bd9b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/rustdoc/empty-doc-comment.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Ensure that empty doc comments don't panic.

/*!
*/

///
///
pub struct Foo;

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

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

0 comments on commit 5e8bd9b

Please sign in to comment.