rust/src/test/rustdoc/intra-doc/anchors.rs

13 lines
242 B
Rust
Raw Normal View History

2019-11-23 11:45:55 -06:00
/// I want...
///
/// # Anchor!
pub struct Something;
// @has anchors/struct.SomeOtherType.html
// @has - '//a/@href' '../anchors/struct.Something.html#Anchor!'
2019-11-23 11:45:55 -06:00
/// I want...
///
/// To link to [Something#Anchor!]
pub struct SomeOtherType;