• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
31