summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/trait-self-link.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/trait-self-link.rs')
-rw-r--r--tests/rustdoc/trait-self-link.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc/trait-self-link.rs b/tests/rustdoc/trait-self-link.rs
new file mode 100644
index 000000000..e311dadff
--- /dev/null
+++ b/tests/rustdoc/trait-self-link.rs
@@ -0,0 +1,6 @@
+// @has trait_self_link/trait.Foo.html //a/@href trait.Foo.html
+pub trait Foo {}
+
+pub struct Bar;
+
+impl Foo for Bar {}