Skip to content

Commit

Permalink
add test for #126986
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi committed Jun 27, 2024
1 parent 94ca674 commit 6400a4f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/rustdoc-ui/disambiguator-macro-endswith-exclamatory.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//@ check-pass

//! [macro@m!] //~ WARN: unresolved link to `m`
//issue#126986

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

fn main() {}
11 changes: 11 additions & 0 deletions tests/rustdoc-ui/disambiguator-macro-endswith-exclamatory.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
warning: unresolved link to `m`
--> $DIR/disambiguator-macro-endswith-exclamatory.rs:3:6
|
LL | //! [macro@m!]
| ^^^^^^^^ no item named `m` in scope
|
= note: `macro_rules` named `m` exists in this crate, but it is not in scope at this link's location
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

warning: 1 warning emitted

0 comments on commit 6400a4f

Please sign in to comment.