1 error: expected one of `const`, `move`, `static`, `|`, or `||`, found `::`
2 --> $DIR/recover-quantified-closure.rs:9:14
4 LL | for <Foo>::Bar in x {}
5 | ^^ expected one of `const`, `move`, `static`, `|`, or `||`
7 error[E0658]: `for<...>` binders for closures are experimental
8 --> $DIR/recover-quantified-closure.rs:2:5
10 LL | for<'a> |x: &'a u8| *x + 1;
13 = note: see issue #97362 <https://github.com/rust-lang/rust/issues/97362> for more information
14 = help: add `#![feature(closure_lifetime_binder)]` to the crate attributes to enable
15 = help: consider removing `for<...>`
17 error[E0658]: `for<...>` binders for closures are experimental
18 --> $DIR/recover-quantified-closure.rs:9:5
20 LL | for <Foo>::Bar in x {}
23 = note: see issue #97362 <https://github.com/rust-lang/rust/issues/97362> for more information
24 = help: add `#![feature(closure_lifetime_binder)]` to the crate attributes to enable
25 = help: consider removing `for<...>`
27 error: implicit types in closure signatures are forbidden when `for<...>` is present
28 --> $DIR/recover-quantified-closure.rs:2:25
30 LL | for<'a> |x: &'a u8| *x + 1;
35 error: aborting due to 4 previous errors
37 For more information about this error, try `rustc --explain E0658`.