]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/intra-doc/anchors.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / 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 {}