]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/intra-doc/macro-rules-error.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / rustdoc-ui / intra-doc / macro-rules-error.rs
CommitLineData
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
7mod 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
18fn check() {}
19
20macro_rules! after {
21 () => {};
22}
23
24macro_rules! str {
25 () => {};
26}