diff options
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs')
-rw-r--r-- | src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs b/src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs new file mode 100644 index 000000000..b0b494fa3 --- /dev/null +++ b/src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs @@ -0,0 +1,8 @@ +fn main() { + for<> || -> () {}; + //~^ ERROR `for<...>` binders for closures are experimental + for<'a> || -> () {}; + //~^ ERROR `for<...>` binders for closures are experimental + for<'a, 'b> |_: &'a ()| -> () {}; + //~^ ERROR `for<...>` binders for closures are experimental +} |