]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | /// I want... |
2 | /// | |
3 | /// # Anchor! | |
4 | pub struct Something; | |
5 | ||
fc512014 | 6 | // @has anchors/struct.SomeOtherType.html |
cdc7bbd5 | 7 | // @has - '//a/@href' 'struct.Something.html#Anchor!' |
60c5eb7d XL |
8 | |
9 | /// I want... | |
10 | /// | |
11 | /// To link to [Something#Anchor!] | |
12 | pub struct SomeOtherType; | |
c295e0f8 XL |
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 {} |