summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auxiliary/issue-19190-3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/auxiliary/issue-19190-3.rs')
-rw-r--r--tests/rustdoc/auxiliary/issue-19190-3.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/rustdoc/auxiliary/issue-19190-3.rs b/tests/rustdoc/auxiliary/issue-19190-3.rs
new file mode 100644
index 000000000..8c526a89a
--- /dev/null
+++ b/tests/rustdoc/auxiliary/issue-19190-3.rs
@@ -0,0 +1,23 @@
+// compile-flags: -Cmetadata=aux
+
+use std::ops::Deref;
+
+pub struct Foo;
+
+impl Deref for Foo {
+ type Target = String;
+ fn deref(&self) -> &String { loop {} }
+}
+
+pub struct Bar;
+pub struct Baz;
+
+impl Baz {
+ pub fn baz(&self) {}
+ pub fn static_baz() {}
+}
+
+impl Deref for Bar {
+ type Target = Baz;
+ fn deref(&self) -> &Baz { loop {} }
+}