diff options
Diffstat (limited to 'tests/rustdoc-json/intra-doc-links/user_written.rs')
-rw-r--r-- | tests/rustdoc-json/intra-doc-links/user_written.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-json/intra-doc-links/user_written.rs b/tests/rustdoc-json/intra-doc-links/user_written.rs new file mode 100644 index 000000000..6871dfea4 --- /dev/null +++ b/tests/rustdoc-json/intra-doc-links/user_written.rs @@ -0,0 +1,8 @@ +//! 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 |