summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/macro-rules-error.rs
blob: 8490584c1b42b346517dd4f709468cade6dbdcf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// `macro_rules` scopes are respected during doc link resolution.

// compile-flags: --document-private-items

#![deny(rustdoc::broken_intra_doc_links)]

mod no_escape {
    macro_rules! before_but_limited_to_module {
        () => {};
    }
}

/// [before_but_limited_to_module]
//~^ ERROR unresolved link to `before_but_limited_to_module`
/// [after]
//~^ ERROR unresolved link to `after`
/// [str]
fn check() {}

macro_rules! after {
    () => {};
}

macro_rules! str {
    () => {};
}