summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-100620.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/issue-100620.rs')
-rw-r--r--tests/rustdoc/issue-100620.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-100620.rs b/tests/rustdoc/issue-100620.rs
new file mode 100644
index 000000000..097666eb5
--- /dev/null
+++ b/tests/rustdoc/issue-100620.rs
@@ -0,0 +1,19 @@
+pub trait Bar<S> {}
+
+pub trait Qux<T> {}
+
+pub trait Foo<T, S> {
+ fn bar()
+ where
+ T: Bar<S>,
+ {
+ }
+}
+
+pub struct Concrete;
+
+impl<S> Foo<(), S> for Concrete {}
+
+impl<T, S> Bar<S> for T where S: Qux<T> {}
+
+impl<T, S> Qux<T> for S where T: Bar<S> {}