2023-10-04 20:04:45 +00:00
|
|
|
// https://github.com/rust-lang/rust/issues/23812
|
2023-10-04 19:08:47 +00:00
|
|
|
#![crate_name="issue_23812"]
|
|
|
|
|
2015-07-15 18:57:47 +00:00
|
|
|
macro_rules! doc {
|
|
|
|
(#[$outer:meta] mod $i:ident { #![$inner:meta] }) =>
|
|
|
|
(
|
|
|
|
#[$outer]
|
|
|
|
pub mod $i {
|
|
|
|
#![$inner]
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
doc! {
|
|
|
|
/// Outer comment
|
|
|
|
mod Foo {
|
|
|
|
//! Inner comment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_23812/Foo/index.html
|
2022-08-10 20:13:18 +00:00
|
|
|
// @hasraw - 'Outer comment'
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw - '/// Outer comment'
|
2022-08-10 20:13:18 +00:00
|
|
|
// @hasraw - 'Inner comment'
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw - '//! Inner comment'
|
2015-07-15 18:57:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
doc! {
|
|
|
|
/** Outer block comment */
|
|
|
|
mod Bar {
|
|
|
|
/*! Inner block comment */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_23812/Bar/index.html
|
2022-08-10 20:13:18 +00:00
|
|
|
// @hasraw - 'Outer block comment'
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw - '/** Outer block comment */'
|
2022-08-10 20:13:18 +00:00
|
|
|
// @hasraw - 'Inner block comment'
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw - '/*! Inner block comment */'
|