fork/rust

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

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

1.43.0
594 B21 linesraw
1error: expected `{`, found `=>`
2  --> $DIR/missing-block-hint.rs:3:18
3   |
4LL |         if (foo) => {}
5   |         --       ^^ expected `{`
6   |         |
7   |         this `if` expression has a condition, but no block
8
9error: expected `{`, found `bar`
10  --> $DIR/missing-block-hint.rs:7:13
11   |
12LL |         if (foo)
13   |         -- this `if` expression has a condition, but no block
14LL |             bar;
15   |             ^^^-
16   |             |
17   |             expected `{`
18   |             help: try placing this code inside a block: `{ bar; }`
19
20error: aborting due to 2 previous errors
21