We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 613643f + 0da1b71 commit d4f9837Copy full SHA for d4f9837
tests/rustdoc/type-alias/primitive-local-link-121106.rs
@@ -0,0 +1,19 @@
1
+#![crate_name = "foo"]
2
+
3
+#![feature(rustc_attrs)]
4
5
+// @has foo/primitive.i32.html '//h1' 'Primitive Type i32'
6
+// @has foo/index.html '//a/@href' '../foo/index.html'
7
+#[rustc_doc_primitive = "i32"]
8
+mod i32 {}
9
10
+// @has foo/struct.Node.html '//a/@href' 'primitive.i32.html'
11
+pub struct Node;
12
13
+impl Node {
14
+ pub fn edge(&self) -> i32 { 0 }
15
+}
16
17
+// @!has foo/type.Alias.html '//a/@href' 'primitive.i32.html'
18
+// @hasraw 'type.impl/foo/struct.Node.js' 'href=\"foo/primitive.i32.html\"'
19
+pub type Alias = Node;
0 commit comments