Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
26
tests/rustdoc-ui/intra-doc/macro-rules-error.rs
Normal file
26
tests/rustdoc-ui/intra-doc/macro-rules-error.rs
Normal file
|
@ -0,0 +1,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 {
|
||||
() => {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue