mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
25 lines
506 B
Rust
25 lines
506 B
Rust
/// I want...
|
|
///
|
|
/// # Anchor!
|
|
pub struct Something;
|
|
|
|
//@ has anchors/struct.SomeOtherType.html
|
|
//@ has - '//a/@href' 'struct.Something.html#Anchor!'
|
|
|
|
/// I want...
|
|
///
|
|
/// To link to [Something#Anchor!]
|
|
pub struct SomeOtherType;
|
|
|
|
/// Primitives?
|
|
///
|
|
/// [u32#hello]
|
|
//@ has anchors/fn.x.html
|
|
//@ has - '//a/@href' '{{channel}}/std/primitive.u32.html#hello'
|
|
pub fn x() {}
|
|
|
|
/// [prim@usize#x]
|
|
//@ has anchors/usize/index.html
|
|
//@ has - '//a/@href' '{{channel}}/std/primitive.usize.html#x'
|
|
pub mod usize {}
|