diff options
Diffstat (limited to 'tests/ui/closures/binder/disallow-const.rs')
-rw-r--r-- | tests/ui/closures/binder/disallow-const.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/closures/binder/disallow-const.rs b/tests/ui/closures/binder/disallow-const.rs new file mode 100644 index 000000000..72ad6185d --- /dev/null +++ b/tests/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 +} |