]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs
Auto merge of #101833 - jyn514:cross-compile-compiler-builtins, r=Mark-Simulacrum
[rust.git] / src / test / 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 }