Skip to content

Commit 69dab50

Browse files
committed
Add test for module ambiguity
1 parent fe98de2 commit 69dab50

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ignore-tidy-linelength
2+
3+
#![deny(intra_doc_link_resolution_failure)]
4+
5+
6+
pub fn foo() {
7+
8+
}
9+
10+
pub mod foo {}
11+
// @has intra_doc_link_mod_ambiguity/struct.A.html '//a/@href' '../intra_doc_link_mod_ambiguity/foo/index.html'
12+
/// Module is [`module@foo`]
13+
pub struct A;
14+
15+
16+
// @has intra_doc_link_mod_ambiguity/struct.B.html '//a/@href' '../intra_doc_link_mod_ambiguity/fn.foo.html'
17+
/// Function is [`fn@foo`]
18+
pub struct B;

0 commit comments

Comments
 (0)