]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-block-hint.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / missing / missing-block-hint.stderr
1 error: expected `{`, found `=>`
2   --> $DIR/missing-block-hint.rs:13:18
3    |
4 LL |         if (foo) => {} //~ ERROR expected `{`, found `=>`
5    |         --       ^^
6    |         |
7    |         this `if` statement has a condition, but no block
8
9 error: expected `{`, found `bar`
10   --> $DIR/missing-block-hint.rs:17:13
11    |
12 LL |         if (foo)
13    |         -- this `if` statement has a condition, but no block
14 LL |             bar; //~ ERROR expected `{`, found `bar`
15    |             ^^^-
16    |             |
17    |             help: try placing this code inside a block: `{ bar; }`
18
19 error: aborting due to 2 previous errors
20