]> git.proxmox.com Git - rustc.git/blobdiff - src/test/rustdoc/intra-doc/anchors.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / anchors.rs
index 8ec1a7b4f9056381784dda314f1537252061b2bd..3d4c464960bbce203dfe03debacbb40a5317802e 100644 (file)
@@ -10,3 +10,15 @@ pub struct Something;
 ///
 /// To link to [Something#Anchor!]
 pub struct SomeOtherType;
+
+/// Primitives?
+///
+/// [u32#hello]
+// @has anchors/fn.x.html
+// @has - '//a/@href' '{{channel}}/std/primitive.u32.html#hello'
+pub fn x() {}
+
+/// [prim@usize#x]
+// @has anchors/usize/index.html
+// @has - '//a/@href' '{{channel}}/std/primitive.usize.html#x'
+pub mod usize {}