summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auxiliary/issue-21092.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/auxiliary/issue-21092.rs')
-rw-r--r--tests/rustdoc/auxiliary/issue-21092.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/auxiliary/issue-21092.rs b/tests/rustdoc/auxiliary/issue-21092.rs
new file mode 100644
index 000000000..51ab7de1c
--- /dev/null
+++ b/tests/rustdoc/auxiliary/issue-21092.rs
@@ -0,0 +1,12 @@
+// compile-flags: -Cmetadata=aux
+
+pub trait Foo {
+ type Bar;
+ fn foo(&self) {}
+}
+
+pub struct Bar;
+
+impl Foo for Bar {
+ type Bar = i32;
+}