fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
506 B19 linesraw
1error: expected expression, found keyword `in`
2  --> $DIR/bad.rs:10:5
3   |
4LL |     in(foo) { bar };
5   |     ^^ expected expression
6
7error[E0282]: type annotations needed
8  --> $DIR/bad.rs:9:8
9   |
10LL |     let (x, y, foo, bar);
11   |         ---------------- consider giving the pattern a type
12LL |     x <- y;
13   |        ^^^ cannot infer type
14   |
15   = note: type must be known at this point
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0282`.