]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-block-hint.stderr
Rollup merge of #97739 - a2aaron:let_underscore, r=estebank
[rust.git] / src / test / ui / missing / missing-block-hint.stderr
1 error: expected `{`, found `=>`
2   --> $DIR/missing-block-hint.rs:3:18
3    |
4 LL |         if (foo) => {}
5    |                  ^^ expected `{`
6    |
7 note: the `if` expression is missing a block after this condition
8   --> $DIR/missing-block-hint.rs:3:12
9    |
10 LL |         if (foo) => {}
11    |            ^^^^^
12
13 error: expected `{`, found `bar`
14   --> $DIR/missing-block-hint.rs:7:13
15    |
16 LL |             bar;
17    |             ^^^ expected `{`
18    |
19 note: the `if` expression is missing a block after this condition
20   --> $DIR/missing-block-hint.rs:6:12
21    |
22 LL |         if (foo)
23    |            ^^^^^
24 help: try placing this code inside a block
25    |
26 LL |             { bar; }
27    |             +      +
28
29 error: aborting due to 2 previous errors
30