diff options
| author | bors <bors@rust-lang.org> | 2019-11-27 04:51:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-27 04:51:31 +0000 |
| commit | b5f265eeed23ac87ec6b4a7e6bc7cb4ea3e67c31 (patch) | |
| tree | 4eb21ae4fe7ba42f31aa57a5d232e529d6a2b777 /src/test/rustdoc | |
| parent | 809e180a76ce97340bf4354ff357bc59e3ca40b2 (diff) | |
| parent | c1ea1fd2b03b16bfeab01cbcd7bae976ab596923 (diff) | |
| download | rust-b5f265eeed23ac87ec6b4a7e6bc7cb4ea3e67c31.tar.gz rust-b5f265eeed23ac87ec6b4a7e6bc7cb4ea3e67c31.zip | |
Auto merge of #66675 - GuillaumeGomez:support-anchors-intra-doc-links, r=kinnison
Support anchors intra doc links Fixes #62833 Part of #43466. cc @ollie27 r? @kinnison
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/intra-links-anchors.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-links-anchors.rs b/src/test/rustdoc/intra-links-anchors.rs new file mode 100644 index 00000000000..f554e16b4f4 --- /dev/null +++ b/src/test/rustdoc/intra-links-anchors.rs @@ -0,0 +1,12 @@ +/// I want... +/// +/// # Anchor! +pub struct Something; + +// @has intra_links_anchors/struct.SomeOtherType.html +// @has - '//a/@href' '../intra_links_anchors/struct.Something.html#Anchor!' + +/// I want... +/// +/// To link to [Something#Anchor!] +pub struct SomeOtherType; |
