]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/intra-doc/anchors.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / anchors.rs
CommitLineData
60c5eb7d
XL
1/// I want...
2///
3/// # Anchor!
4pub 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!]
12pub 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'
19pub fn x() {}
20
21/// [prim@usize#x]
22// @has anchors/usize/index.html
23// @has - '//a/@href' '{{channel}}/std/primitive.usize.html#x'
24pub mod usize {}