]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/intra-doc/anchors.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / anchors.rs
1 /// I want...
2 ///
3 /// # Anchor!
4 pub struct Something;
5
6 // @has anchors/struct.SomeOtherType.html
7 // @has - '//a/@href' 'struct.Something.html#Anchor!'
8
9 /// I want...
10 ///
11 /// To link to [Something#Anchor!]
12 pub struct SomeOtherType;
13
14 /// Primitives?
15 ///
16 /// [u32#hello]
17 // @has anchors/fn.x.html
18 // @has - '//a/@href' '{{channel}}/std/primitive.u32.html#hello'
19 pub fn x() {}
20
21 /// [prim@usize#x]
22 // @has anchors/usize/index.html
23 // @has - '//a/@href' '{{channel}}/std/primitive.usize.html#x'
24 pub mod usize {}