]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-closure_lifetime_binder.rs
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / feature-gates / feature-gate-closure_lifetime_binder.rs
1 fn main() {
2     for<> || -> () {};
3     //~^ ERROR `for<...>` binders for closures are experimental
4     for<'a> || -> () {};
5     //~^ ERROR `for<...>` binders for closures are experimental
6     for<'a, 'b> |_: &'a ()| -> () {};
7     //~^ ERROR `for<...>` binders for closures are experimental
8 }