summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-23543.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-23543.rs')
-rw-r--r--tests/ui/issues/issue-23543.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-23543.rs b/tests/ui/issues/issue-23543.rs
new file mode 100644
index 000000000..843e1a8a8
--- /dev/null
+++ b/tests/ui/issues/issue-23543.rs
@@ -0,0 +1,11 @@
+pub trait A: Copy {}
+
+struct Foo;
+
+pub trait D {
+ fn f<T>(self)
+ where T<Bogus = Foo>: A;
+ //~^ ERROR associated type bindings are not allowed here [E0229]
+}
+
+fn main() {}