mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
Add test for empty doc comments with a backline
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Ensure that empty doc comments don't panic.
|
||||
|
||||
/*!
|
||||
*/
|
||||
|
||||
///
|
||||
///
|
||||
pub struct Foo;
|
||||
|
||||
#[doc = "
|
||||
"]
|
||||
pub mod Mod {
|
||||
//!
|
||||
//!
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
pub mod Another {
|
||||
#![doc = "
|
||||
"]
|
||||
}
|
||||
Reference in New Issue
Block a user