summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-20175.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/issue-20175.rs')
-rw-r--r--tests/rustdoc/issue-20175.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-20175.rs b/tests/rustdoc/issue-20175.rs
new file mode 100644
index 000000000..6a42e2afb
--- /dev/null
+++ b/tests/rustdoc/issue-20175.rs
@@ -0,0 +1,10 @@
+pub trait Foo {
+ fn foo(&self) {}
+}
+
+pub struct Bar;
+
+// @has issue_20175/struct.Bar.html \
+// '//*[@id="method.foo"]' \
+// 'fn foo'
+impl<'a> Foo for &'a Bar {}