diff options
| author | Tymoteusz Jankowski <tymoteusz.jankowski@gmail.com> | 2020-05-19 13:54:22 +0200 |
|---|---|---|
| committer | Tymoteusz Jankowski <tymoteusz.jankowski@gmail.com> | 2020-05-19 14:32:17 +0200 |
| commit | fc4c9a6c7f27dc4cc68d8b2afe77e88a29ff8a31 (patch) | |
| tree | 2081d32b4a5e8f514ba43aafef5e88436297df4d /src/test/rustdoc | |
| parent | 914adf04af1c1a984707f778da3d04590c03d144 (diff) | |
| download | rust-fc4c9a6c7f27dc4cc68d8b2afe77e88a29ff8a31.tar.gz rust-fc4c9a6c7f27dc4cc68d8b2afe77e88a29ff8a31.zip | |
Make intra-link resolve links for both trait and impl items
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-72340.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-72340.rs b/src/test/rustdoc/issue-72340.rs new file mode 100644 index 00000000000..6ed3bfbe3e5 --- /dev/null +++ b/src/test/rustdoc/issue-72340.rs @@ -0,0 +1,19 @@ +#![crate_name = "foo"] + +pub struct Body; + +impl Body { + pub fn empty() -> Self { + Body + } + +} + +impl Default for Body { + // @has foo/struct.Body.html '//a/@href' '../foo/struct.Body.html#method.empty' + + /// Returns [`Body::empty()`](Body::empty). + fn default() -> Body { + Body::empty() + } +} |
