]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-quantified-closure.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / recover-quantified-closure.stderr
1 error: expected one of `move`, `static`, `|`, or `||`, found `::`
2   --> $DIR/recover-quantified-closure.rs:9:14
3    |
4 LL |     for <Foo>::Bar in x {}
5    |              ^^ expected one of `move`, `static`, `|`, or `||`
6
7 error[E0658]: `for<...>` binders for closures are experimental
8   --> $DIR/recover-quantified-closure.rs:2:5
9    |
10 LL |     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
17 error[E0658]: `for<...>` binders for closures are experimental
18   --> $DIR/recover-quantified-closure.rs:9:5
19    |
20 LL |     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
27 error: implicit types in closure signatures are forbidden when `for<...>` is present
28   --> $DIR/recover-quantified-closure.rs:2:25
29    |
30 LL |     for<'a> |x: &'a u8| *x + 1;
31    |     -------             ^
32    |     |
33    |     `for<...>` is here
34
35 error: aborting due to 4 previous errors
36
37 For more information about this error, try `rustc --explain E0658`.