Skip to content

Commit a04c124

Browse files
committed
Add test
1 parent 1d0ae9f commit a04c124

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/rustdoc/intra-links.rs

+12
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,15 @@ pub trait SoAmbiguous {}
7777

7878
#[allow(bad_style)]
7979
pub fn SoAmbiguous() {}
80+
81+
82+
// @has - '//a/@href' '../intra_links/struct.ThisType.html'
83+
// @has - '//a/@href' '../intra_links/struct.ThisType.html#method.this_method'
84+
// @has - '//a/@href' '../intra_links/enum.ThisEnum.html'
85+
// @has - '//a/@href' '../intra_links/enum.ThisEnum.html#ThisVariant.v'
86+
/// Shortcut links for:
87+
/// * [`ThisType`]
88+
/// * [`ThisType::this_method`]
89+
/// * [ThisEnum]
90+
/// * [ThisEnum::ThisVariant]
91+
pub struct SomeOtherType;

0 commit comments

Comments
 (0)