summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/issue-104916.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-type-bounds/issue-104916.rs')
-rw-r--r--tests/ui/associated-type-bounds/issue-104916.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/issue-104916.rs b/tests/ui/associated-type-bounds/issue-104916.rs
new file mode 100644
index 000000000..3361fa011
--- /dev/null
+++ b/tests/ui/associated-type-bounds/issue-104916.rs
@@ -0,0 +1,14 @@
+#![feature(associated_type_bounds)]
+
+trait B {
+ type AssocType;
+}
+
+fn f()
+where
+ dyn for<'j> B<AssocType: 'j>:,
+ //~^ ERROR: associated type bounds are only allowed in where clauses and function signatures
+{
+}
+
+fn main() {}