fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
739 B30 linesraw
1error: expected `{`, found `=>`
2  --> $DIR/missing-block-hint.rs:3:18
3   |
4LL |         if (foo) => {}
5   |                  ^^ expected `{`
6   |
7note: the `if` expression is missing a block after this condition
8  --> $DIR/missing-block-hint.rs:3:12
9   |
10LL |         if (foo) => {}
11   |            ^^^^^
12
13error: expected `{`, found `bar`
14  --> $DIR/missing-block-hint.rs:7:13
15   |
16LL |             bar;
17   |             ^^^ expected `{`
18   |
19note: the `if` expression is missing a block after this condition
20  --> $DIR/missing-block-hint.rs:6:12
21   |
22LL |         if (foo)
23   |            ^^^^^
24help: try placing this code inside a block
25   |
26LL |             { bar; }
27   |             +      +
28
29error: aborting due to 2 previous errors
30