summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/associated-item-through-where-clause.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-type-bounds/associated-item-through-where-clause.rs')
-rw-r--r--tests/ui/associated-type-bounds/associated-item-through-where-clause.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/associated-item-through-where-clause.rs b/tests/ui/associated-type-bounds/associated-item-through-where-clause.rs
new file mode 100644
index 000000000..3eb50ab55
--- /dev/null
+++ b/tests/ui/associated-type-bounds/associated-item-through-where-clause.rs
@@ -0,0 +1,21 @@
+// check-pass
+
+trait Foo {
+ type Item;
+}
+
+trait Bar
+where
+ Self: Foo,
+{
+}
+
+#[allow(dead_code)]
+fn foo<M>(_m: M)
+where
+ M: Bar,
+ M::Item: Send,
+{
+}
+
+fn main() {}