Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
macro-doc-comments.rs
blob: 47740e26fb6fa692392af08396f4534f9e0e18c0 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
non_snake_case
)]
macro_rules
!
doc
{
(
$
(#[
$outer
:
meta
])*
mod
$i
:
ident
{
$
(#![
$inner
:
meta
])*
}
)
=>
(
$
(#[
$outer
])*
pub
mod
$i
{
$
(#![
$inner
])*
}
)
}
doc
!
{
/// Outer doc
mod
Foo
{
//! Inner doc
}
}
fn
main
()
{
}