summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-types/issue-39532.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-types/issue-39532.rs')
-rw-r--r--tests/ui/associated-types/issue-39532.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/associated-types/issue-39532.rs b/tests/ui/associated-types/issue-39532.rs
new file mode 100644
index 000000000..52652cede
--- /dev/null
+++ b/tests/ui/associated-types/issue-39532.rs
@@ -0,0 +1,14 @@
+// check-pass
+
+#![allow(unused)]
+
+trait Foo {
+ type Bar;
+ type Baz: Bar<Self::Bar>;
+}
+
+trait Bar<T> {}
+
+fn x<T: Foo<Bar = U>, U>(t: &T) {}
+
+fn main() {}