mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
25 lines
297 B
Rust
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!();
|
|
}
|
|
}
|