rust/tests/rustdoc-ui/intra-doc/macro-rules.rs
2023-01-11 09:32:08 +00:00

25 lines
297 B
Rust

// check-pass
#![allow(rustdoc::private_intra_doc_links)]
macro_rules! foo {
() => {};
}
/// [foo!]
pub fn baz() {}
#[macro_use]
mod macros {
macro_rules! escaping {
() => {};
}
}
pub mod inner {
/// [foo!]
/// [escaping]
pub fn baz() {
foo!();
}
}