Skip to content

Commit

Permalink
Add test for module ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jul 17, 2020
1 parent fe98de2 commit 69dab50
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/rustdoc/intra-doc-link-mod-ambiguity.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ignore-tidy-linelength

#![deny(intra_doc_link_resolution_failure)]


pub fn foo() {

}

pub mod foo {}
// @has intra_doc_link_mod_ambiguity/struct.A.html '//a/@href' '../intra_doc_link_mod_ambiguity/foo/index.html'
/// Module is [`module@foo`]
pub struct A;


// @has intra_doc_link_mod_ambiguity/struct.B.html '//a/@href' '../intra_doc_link_mod_ambiguity/fn.foo.html'
/// Function is [`fn@foo`]
pub struct B;

0 comments on commit 69dab50

Please sign in to comment.