]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | // `macro_rules` scopes are respected during doc link resolution. |
2 | ||
3 | // compile-flags: --document-private-items | |
4 | ||
5 | #![deny(rustdoc::broken_intra_doc_links)] | |
6 | ||
7 | mod no_escape { | |
8 | macro_rules! before_but_limited_to_module { | |
9 | () => {}; | |
10 | } | |
11 | } | |
12 | ||
923072b8 FG |
13 | /// [before_but_limited_to_module] |
14 | //~^ ERROR unresolved link to `before_but_limited_to_module` | |
15 | /// [after] | |
16 | //~^ ERROR unresolved link to `after` | |
17 | /// [str] | |
04454e1e FG |
18 | fn check() {} |
19 | ||
20 | macro_rules! after { | |
21 | () => {}; | |
22 | } | |
23 | ||
24 | macro_rules! str { | |
25 | () => {}; | |
26 | } |