We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a198c7 commit 271ac7bCopy full SHA for 271ac7b
tests/ui/associated-type-bounds/issue-104916.rs
@@ -0,0 +1,14 @@
1
+#![feature(associated_type_bounds)]
2
+
3
+trait B {
4
+ type AssocType;
5
+}
6
7
+fn f()
8
+where
9
+ dyn for<'j> B<AssocType: 'j>:,
10
+ //~^ ERROR: associated type bounds are only allowed in where clauses and function signatures
11
+{
12
13
14
+fn main() {}
tests/ui/associated-type-bounds/issue-104916.stderr
@@ -0,0 +1,8 @@
+error: associated type bounds are only allowed in where clauses and function signatures, not in bounds
+ --> $DIR/issue-104916.rs:9:19
+ |
+LL | dyn for<'j> B<AssocType: 'j>:,
+ | ^^^^^^^^^^^^^
+error: aborting due to previous error
0 commit comments