fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
534 B16 linesraw
1error: cannot introduce explicit parameters for a closure
2  --> $DIR/recover-quantified-closure.rs:2:5
3   |
4LL |     for<'a> |x: &'a u8| *x + 1;
5   |     ^^^^^^^ ------------------ the parameters are attached to this closure
6   |     |
7   |     help: remove the parameters
8
9error: expected one of `move`, `static`, `|`, or `||`, found `::`
10  --> $DIR/recover-quantified-closure.rs:8:14
11   |
12LL |     for <Foo>::Bar in x {}
13   |              ^^ expected one of `move`, `static`, `|`, or `||`
14
15error: aborting due to 2 previous errors
16