summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/disallow-ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/binder/disallow-ty.rs')
-rw-r--r--tests/ui/closures/binder/disallow-ty.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/closures/binder/disallow-ty.rs b/tests/ui/closures/binder/disallow-ty.rs
new file mode 100644
index 000000000..bbe3d8488
--- /dev/null
+++ b/tests/ui/closures/binder/disallow-ty.rs
@@ -0,0 +1,6 @@
+#![feature(closure_lifetime_binder)]
+
+fn main() {
+ for<T> || -> () {};
+ //~^ ERROR only lifetime parameters can be used in this context
+}