diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-17 11:33:49 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-17 13:04:54 -0700 |
| commit | 69dab507620aada3085b45ccd0189de3bf8c8734 (patch) | |
| tree | 29fce62306803124dcc487e1c4051db0f617761e | |
| parent | fe98de2a8e3941bb33d1149c3717d8ea0744e39c (diff) | |
Add test for module ambiguity
| -rw-r--r-- | src/test/rustdoc/intra-doc-link-mod-ambiguity.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc-link-mod-ambiguity.rs b/src/test/rustdoc/intra-doc-link-mod-ambiguity.rs new file mode 100644 index 00000000000..65187f48539 --- /dev/null +++ b/src/test/rustdoc/intra-doc-link-mod-ambiguity.rs @@ -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; |
