]> git.proxmox.com Git - rustc.git/blame - src/test/ui/missing/missing-block-hint.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / missing / missing-block-hint.stderr
CommitLineData
ff7c6d11 1error: expected `{`, found `=>`
0731742a 2 --> $DIR/missing-block-hint.rs:3:18
ff7c6d11 3 |
532ac7d7 4LL | if (foo) => {}
a1dfa0c6 5 | -- ^^ expected `{`
0531ce1d 6 | |
dfeec247 7 | this `if` expression has a condition, but no block
ff7c6d11
XL
8
9error: expected `{`, found `bar`
0731742a 10 --> $DIR/missing-block-hint.rs:7:13
ff7c6d11 11 |
0531ce1d 12LL | if (foo)
dfeec247 13 | -- this `if` expression has a condition, but no block
532ac7d7 14LL | bar;
ee023bcb
FG
15 | ^^^ expected `{`
16 |
17help: try placing this code inside a block
18 |
19LL | { bar; }
20 | + +
ff7c6d11
XL
21
22error: aborting due to 2 previous errors
23