]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-quantified-closure.stderr
Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472
[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