fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
592 B21 linesraw
1error: expected `{`, found `=>`
2  --> $DIR/missing-block-hint.rs:3:18
3   |
4LL |         if (foo) => {}
5   |         --       ^^ expected `{`
6   |         |
7   |         this `if` statement 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` statement 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