Skip to content

Commit 6400a4f

Browse files
committed
add test for #126986
1 parent 94ca674 commit 6400a4f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ check-pass
2+
3+
//! [macro@m!] //~ WARN: unresolved link to `m`
4+
5+
//issue#126986
6+
7+
macro_rules! m {
8+
() => {};
9+
}
10+
11+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: unresolved link to `m`
2+
--> $DIR/disambiguator-macro-endswith-exclamatory.rs:3:6
3+
|
4+
LL | //! [macro@m!]
5+
| ^^^^^^^^ no item named `m` in scope
6+
|
7+
= note: `macro_rules` named `m` exists in this crate, but it is not in scope at this link's location
8+
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
9+
10+
warning: 1 warning emitted
11+

0 commit comments

Comments
 (0)