2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
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 doc
|
|
|
|
mod Foo {
|
|
|
|
//! Inner doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|