fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected one of `move`, `static`, `|`, or `||`, found `::` 2 --> $DIR/recover-quantified-closure.rs:9:14 3 | 4LL | for <Foo>::Bar in x {} 5 | ^^ expected one of `move`, `static`, `|`, or `||` 6 7error[E0658]: `for<...>` binders for closures are experimental 8 --> $DIR/recover-quantified-closure.rs:2:5 9 | 10LL | for<'a> |x: &'a u8| *x + 1; 11 | ^^^^^^^ 12 | 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<...>` 16 17error[E0658]: `for<...>` binders for closures are experimental 18 --> $DIR/recover-quantified-closure.rs:9:5 19 | 20LL | for <Foo>::Bar in x {} 21 | ^^^^^^^^^ 22 | 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<...>` 26 27error: implicit types in closure signatures are forbidden when `for<...>` is present 28 --> $DIR/recover-quantified-closure.rs:2:24 29 | 30LL | for<'a> |x: &'a u8| *x + 1; 31 | ------- ^ 32 | | 33 | `for<...>` is here 34 35error: aborting due to 4 previous errors 36 37For more information about this error, try `rustc --explain E0658`.