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