diff options
Diffstat (limited to 'tests/rustdoc/disambiguate-anchors-32890.rs')
-rw-r--r-- | tests/rustdoc/disambiguate-anchors-32890.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rustdoc/disambiguate-anchors-32890.rs b/tests/rustdoc/disambiguate-anchors-32890.rs new file mode 100644 index 000000000..d88601d65 --- /dev/null +++ b/tests/rustdoc/disambiguate-anchors-32890.rs @@ -0,0 +1,20 @@ +// https://github.com/rust-lang/rust/issues/32890 +#![crate_name="issue_32890"] + +// @has issue_32890/struct.Foo.html +pub struct Foo<T>(T); + +impl Foo<u8> { + // @has - '//a[@href="#method.pass"]' 'pass' + pub fn pass() {} +} + +impl Foo<u16> { + // @has - '//a[@href="#method.pass-1"]' 'pass' + pub fn pass() {} +} + +impl Foo<u32> { + // @has - '//a[@href="#method.pass-2"]' 'pass' + pub fn pass() {} +} |