]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing/missing-block-hint.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / missing / missing-block-hint.rs
1 fn main() {
2     {
3         if (foo) => {} //~ ERROR expected `{`, found `=>`
4     }
5     {
6         if (foo)
7             bar; //~ ERROR expected `{`, found `bar`
8     }
9 }