diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-11-28 20:25:41 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-28 21:13:55 -0500 |
| commit | ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed (patch) | |
| tree | ecf43b905627276e664d79d7ab93bba72f899fad /src/test/rustdoc/intra-doc/mod-ambiguity.rs | |
| parent | e37f25aa3f356546ab851e394d5598fc575eabda (diff) | |
| download | rust-ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed.tar.gz rust-ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed.zip | |
Move `src/test/rustdoc` intra-doc link tests into a subdirectory
They were starting to get unwieldy.
Diffstat (limited to 'src/test/rustdoc/intra-doc/mod-ambiguity.rs')
| -rw-r--r-- | src/test/rustdoc/intra-doc/mod-ambiguity.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc/mod-ambiguity.rs b/src/test/rustdoc/intra-doc/mod-ambiguity.rs new file mode 100644 index 00000000000..feb013b22be --- /dev/null +++ b/src/test/rustdoc/intra-doc/mod-ambiguity.rs @@ -0,0 +1,16 @@ +#![deny(broken_intra_doc_links)] + + +pub fn foo() { + +} + +pub mod foo {} +// @has mod_ambiguity/struct.A.html '//a/@href' '../mod_ambiguity/foo/index.html' +/// Module is [`module@foo`] +pub struct A; + + +// @has mod_ambiguity/struct.B.html '//a/@href' '../mod_ambiguity/fn.foo.html' +/// Function is [`fn@foo`] +pub struct B; |
