2022-04-28 07:52:54 -05:00
|
|
|
// `macro_rules` scopes are respected during doc link resolution.
|
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags: --document-private-items
|
2022-04-28 07:52:54 -05:00
|
|
|
|
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
|
|
|
|
|
|
|
mod no_escape {
|
|
|
|
macro_rules! before_but_limited_to_module {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-15 12:05:52 -05:00
|
|
|
/// [before_but_limited_to_module]
|
|
|
|
//~^ ERROR unresolved link to `before_but_limited_to_module`
|
|
|
|
/// [after]
|
|
|
|
//~^ ERROR unresolved link to `after`
|
|
|
|
/// [str]
|
2022-04-28 07:52:54 -05:00
|
|
|
fn check() {}
|
|
|
|
|
|
|
|
macro_rules! after {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! str {
|
|
|
|
() => {};
|
|
|
|
}
|