summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/binder-on-bound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-type-bounds/binder-on-bound.rs')
-rw-r--r--src/test/ui/associated-type-bounds/binder-on-bound.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/binder-on-bound.rs b/src/test/ui/associated-type-bounds/binder-on-bound.rs
new file mode 100644
index 000000000..0b4b24b98
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/binder-on-bound.rs
@@ -0,0 +1,11 @@
+#![feature(generic_associated_types)]
+
+trait Trait {
+ type Bound<'a>;
+}
+
+fn foo() where Trait<for<'a> Bound<'a> = &'a ()> {
+ //~^ ERROR `for<...>` is not allowed on associated type bounds
+}
+
+fn main() {}