]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-quantified-closure.stderr
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / ui / parser / recover-quantified-closure.stderr
1 error: cannot introduce explicit parameters for a closure
2   --> $DIR/recover-quantified-closure.rs:2:5
3    |
4 LL |     for<'a> |x: &'a u8| *x + 1;
5    |     ^^^^^^^ ------------------ the parameters are attached to this closure
6    |     |
7    |     help: remove the parameters
8
9 error: expected one of `move`, `static`, `|`, or `||`, found `::`
10   --> $DIR/recover-quantified-closure.rs:8:14
11    |
12 LL |     for <Foo>::Bar in x {}
13    |              ^^ expected one of `move`, `static`, `|`, or `||`
14
15 error: aborting due to 2 previous errors
16