rust/tests/rustdoc-json/intra-doc-links/user_written.rs

9 lines
229 B
Rust
Raw Normal View History

//! For motivation, see [the reasons](foo#reasons)
/// # Reasons
/// To test rustdoc json
pub fn foo() {}
// @set foo = "$.index[*][?(@.name=='foo')].id"
// @is "$.index[*][?(@.name=='user_written')].links['foo#reasons']" $foo