From 433f2b030b1c672bd19f38f6247d8aadce438189 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 23 Nov 2019 18:45:55 +0100 Subject: Add test for anchors --- src/test/rustdoc/intra-links-anchors.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/test/rustdoc/intra-links-anchors.rs (limited to 'src/test/rustdoc') 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; -- cgit 1.4.1-3-g733a5