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