| 1 |
// comment line not a doc |
| 2 |
/* comment block not a doc */ |
| 3 |
|
| 4 |
//! inner line comment for most outer crate |
| 5 |
/*! inner block comment for most outer crate */ |
| 6 |
|
| 7 |
// comment line not a doc |
| 8 |
/* comment block not a doc */ |
| 9 |
|
| 10 |
/// outer doc line for module |
| 11 |
/** outer doc block for module */ |
| 12 |
pub mod module { |
| 13 |
//! inner line doc |
| 14 |
//!! inner line doc! |
| 15 |
/*! inner block doc */ |
| 16 |
/*!! inner block doc! */ |
| 17 |
|
| 18 |
// line comment |
| 19 |
/// outer line doc |
| 20 |
//// line comment |
| 21 |
|
| 22 |
/* block comment */ |
| 23 |
/** outer block doc */ |
| 24 |
/*** block comment */ |
| 25 |
|
| 26 |
mod block_doc_comments { |
| 27 |
/* /* */ /** */ /*! */ */ |
| 28 |
/*! /* */ /** */ /*! */ */ |
| 29 |
/** /* */ /** */ /*! */ */ |
| 30 |
mod item {} |
| 31 |
} |
| 32 |
|
| 33 |
pub mod empty { |
| 34 |
//! |
| 35 |
/*!*/ |
| 36 |
// |
| 37 |
|
| 38 |
/// |
| 39 |
// the following warning is issued one line earlier |
| 40 |
mod doc {} |
| 41 |
/**/ |
| 42 |
/***/ |
| 43 |
} |
| 44 |
} |
| 45 |
pub fn main() {} |